Sha256: 7a208423560765df171904702f16461f7ea085fc9d9fbaa9f855986b1e408558
Contents?: true
Size: 312 Bytes
Versions: 10
Compression:
Stored size: 312 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} && npm start &") sleep(1) end end end
Version data entries
10 entries across 10 versions & 1 rubygems