Skip to content

Instantly share code, notes, and snippets.

@lukaszkorecki
Last active August 29, 2015 14:08
Show Gist options
  • Save lukaszkorecki/2eee17cea65920d4a328 to your computer and use it in GitHub Desktop.
Save lukaszkorecki/2eee17cea65920d4a328 to your computer and use it in GitHub Desktop.
source 'https://rubygems.org'
gem 'foreman'
GEM
remote: https://rubygems.org/
specs:
dotenv (0.11.1)
dotenv-deployment (~> 0.0.2)
dotenv-deployment (0.0.2)
foreman (0.75.0)
dotenv (~> 0.11.1)
thor (~> 0.19.1)
thor (0.19.1)
PLATFORMS
ruby
DEPENDENCIES
foreman
worker: bar
# First export the worker init files
bundle exec foreman export -f Procfile2 --app test-app-worker upstart .
# output:
# [foreman export] writing: test-app-worker.conf │~
# [foreman export] writing: test-app-worker-worker.conf │~
# [foreman export] writing: test-app-worker-worker-1.conf
# then export app code:
bundle exec foreman export -r Procfile --app test-app upstart .
# output:
# [foreman export] cleaning up: ./test-app-worker-worker.conf │~
# [foreman export] cleaning up: ./test-app-worker.conf │~
# [foreman export] cleaning up: ./test-app-worker-worker-1.conf │~
# ^^^^^^^ test-app-worker files have been deleted :-(
# [foreman export] writing: test-app.conf │~
# [foreman export] writing: test-app-web.conf │~
# [foreman export] writing: test-app-web-1.conf
#
ls *.conf
# output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment