Sha256: d242e38a55d209e832a10062e79ce0f52d235f606ca9bd2b59ed73281a7e4ca6

Contents?: true

Size: 318 Bytes

Versions: 29

Compression:

Stored size: 318 Bytes

Contents

module ReactOnRails
  module TestHelper
    def self.launch_node
      if ReactOnRails.configuration.server_render_method == "NodeJS"
        path = "#{::Rails.root}/client/node"
        puts "Launching NodeJS server at #{path}"
        system("cd #{path} && npm start &")
        sleep(1)
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
react_on_rails-6.3.2 lib/react_on_rails/test_helper/node_process_launcher.rb
react_on_rails-6.3.1 lib/react_on_rails/test_helper/node_process_launcher.rb
react_on_rails-6.3.0 lib/react_on_rails/test_helper/node_process_launcher.rb
react_on_rails-6.2.1 lib/react_on_rails/test_helper/node_process_launcher.rb
react_on_rails-6.2.1.rc.3 lib/react_on_rails/test_helper/node_process_launcher.rb
react_on_rails-6.2.1.rc.2 lib/react_on_rails/test_helper/node_process_launcher.rb
react_on_rails-6.2.1.rc.1 lib/react_on_rails/test_helper/node_process_launcher.rb
react_on_rails-6.2.0 lib/react_on_rails/test_helper/node_process_launcher.rb
react_on_rails-6.1.2 lib/react_on_rails/test_helper/node_process_launcher.rb
react_on_rails-6.1.1 lib/react_on_rails/test_helper/node_process_launcher.rb
react_on_rails-6.1.1.rc.1 lib/react_on_rails/test_helper/node_process_launcher.rb
react_on_rails-6.1.0 lib/react_on_rails/test_helper/node_process_launcher.rb
react_on_rails-6.0.5 lib/react_on_rails/test_helper/node_process_launcher.rb
react_on_rails-6.0.4 lib/react_on_rails/test_helper/node_process_launcher.rb
react_on_rails-6.0.3 lib/react_on_rails/test_helper/node_process_launcher.rb
react_on_rails-6.0.2 lib/react_on_rails/test_helper/node_process_launcher.rb
react_on_rails-6.0.1 lib/react_on_rails/test_helper/node_process_launcher.rb
react_on_rails-6.0.0 lib/react_on_rails/test_helper/node_process_launcher.rb
react_on_rails-6.0.0.rc.6 lib/react_on_rails/test_helper/node_process_launcher.rb
react_on_rails-6.0.0.rc.5 lib/react_on_rails/test_helper/node_process_launcher.rb