Sha256: 8efb52fa7d3cf744fba54adcc34c8d77d05287d005ce01e52f20fb52e046f71f

Contents?: true

Size: 313 Bytes

Versions: 25

Compression:

Stored size: 313 Bytes

Contents

module ReactOnRails
  module TestHelper
    def self.launch_node
      return unless ReactOnRails.configuration.server_render_method == "NodeJS"

      path = "#{::Rails.root}/client/node"
      puts "Launching NodeJS server at #{path}"
      system("cd #{path} && yarn start &")
      sleep(1)
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
react_on_rails-8.0.1 lib/react_on_rails/test_helper/node_process_launcher.rb
react_on_rails-8.0.0 lib/react_on_rails/test_helper/node_process_launcher.rb
react_on_rails-8.0.0.beta.3 lib/react_on_rails/test_helper/node_process_launcher.rb
react_on_rails-8.0.0.beta.2 lib/react_on_rails/test_helper/node_process_launcher.rb
react_on_rails-8.0.0.beta.1 lib/react_on_rails/test_helper/node_process_launcher.rb
react_on_rails-7.1.0.beta.3 lib/react_on_rails/test_helper/node_process_launcher.rb
react_on_rails-7.0.4 lib/react_on_rails/test_helper/node_process_launcher.rb
react_on_rails-7.1.0.beta.2 lib/react_on_rails/test_helper/node_process_launcher.rb
react_on_rails-7.0.3 lib/react_on_rails/test_helper/node_process_launcher.rb
react_on_rails-7.1.0.beta.1 lib/react_on_rails/test_helper/node_process_launcher.rb
react_on_rails-7.0.2 lib/react_on_rails/test_helper/node_process_launcher.rb
react_on_rails-7.0.1 lib/react_on_rails/test_helper/node_process_launcher.rb
react_on_rails-7.0.0 lib/react_on_rails/test_helper/node_process_launcher.rb
react_on_rails-6.10.1 lib/react_on_rails/test_helper/node_process_launcher.rb
react_on_rails-6.10.0 lib/react_on_rails/test_helper/node_process_launcher.rb
react_on_rails-6.9.3 lib/react_on_rails/test_helper/node_process_launcher.rb
react_on_rails-6.9.2 lib/react_on_rails/test_helper/node_process_launcher.rb
react_on_rails-6.9.1 lib/react_on_rails/test_helper/node_process_launcher.rb
react_on_rails-6.9.0 lib/react_on_rails/test_helper/node_process_launcher.rb
react_on_rails-6.8.2 lib/react_on_rails/test_helper/node_process_launcher.rb