Skip to content

Instantly share code, notes, and snippets.

@nevalla
Last active August 29, 2015 13:58
Show Gist options
  • Save nevalla/10020823 to your computer and use it in GitHub Desktop.
Save nevalla/10020823 to your computer and use it in GitHub Desktop.
Use subcontractor gem to launch multiple applications with 'foreman start' command
project1-api: subcontract --rvm ../project1-api --chdir ../project1-api -- rails s -p 3000
project1-sidekiq: subcontract --rvm ../project1-api --chdir ../project1-api -- bundle exec sidekiq
project1-web-ui: subcontract --rvm ../project1-web-ui --chdir ../project1-web-ui -- rails s -p 3001
project2-api: subcontract --rvm ../project2-api --chdir ../project2-api -- rails s -p 4000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment