Skip to content

Instantly share code, notes, and snippets.

@sebyx07
Last active February 12, 2016 18:58
Show Gist options
  • Save sebyx07/82baa9e25c3a94caed12 to your computer and use it in GitHub Desktop.
Save sebyx07/82baa9e25c3a94caed12 to your computer and use it in GitHub Desktop.
def start_ember_app
ember_pid = Process.spawn({}, 'ember s --proxy http://localhost:3000', {chdir: Rails.root.parent.join('frontend').to_s})
Process.detach ember_pid
rails_pid = Process.spawn({'RAILS_ENV' => 'test'}, 'rails s', {})
Process.detach rails_pid
[ember_pid, rails_pid]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment