Last active
February 12, 2016 18:58
-
-
Save sebyx07/82baa9e25c3a94caed12 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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