https://github.com/sstephenson/rbenv/wiki/Deploying-with-rbenv
-
-
Save seyhunak/0c38f7e425d8fc933439 to your computer and use it in GitHub Desktop.
Rails - Foreman - Supervisord Configuration
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
| RAILS_ENV=production | |
| VERBOSE=0 | |
| QUEUE=* |
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
| web: ~/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/bin/bundle exec unicorn -p $PORT -c ~/www/introduce_biz/config/unicorn.rb | |
| beanstalkd: ~/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/bin/bundle exec backburner -q default -P /var/run/backburner.pid -l /var/log/backburner.log |
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
| export HOME=$HOME | |
| RBENV_ROOT=$HOME/.rbenv | |
| export PATH="$RBENV_ROOT/bin:$RBENV_ROOT/shims:$PATH" |
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
| foreman export supervisord /etc/supervisor/conf.d -a app -u ubuntu -l /home/app/log -f /home/app/Procfile -c web=1,beanstalkd=1 | |
| sudo supervisorctl reread | |
| sudo supervisorctl update | |
| sudo supervisorctl restart all | |
| sudo supervisorctl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment