Skip to content

Instantly share code, notes, and snippets.

@seyhunak
Last active October 23, 2018 14:32
Show Gist options
  • Save seyhunak/0c38f7e425d8fc933439 to your computer and use it in GitHub Desktop.
Save seyhunak/0c38f7e425d8fc933439 to your computer and use it in GitHub Desktop.
Rails - Foreman - Supervisord Configuration
RAILS_ENV=production
VERBOSE=0
QUEUE=*
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
export HOME=$HOME
RBENV_ROOT=$HOME/.rbenv
export PATH="$RBENV_ROOT/bin:$RBENV_ROOT/shims:$PATH"
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