Last active
August 29, 2015 14:08
-
-
Save lukaszkorecki/2eee17cea65920d4a328 to your computer and use it in GitHub Desktop.
This file contains 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
source 'https://rubygems.org' | |
gem 'foreman' |
This file contains 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
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 |
This file contains 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
web: foo |
This file contains 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
worker: bar |
This file contains 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
# 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