Skip to content

Instantly share code, notes, and snippets.

@infoslack
Created October 31, 2013 18:49
Show Gist options
  • Save infoslack/7254872 to your computer and use it in GitHub Desktop.
Save infoslack/7254872 to your computer and use it in GitHub Desktop.
puma upstart
description "projeto server config"
pre-start script
mkdir -p /var/log/puma
chown deploy. /var/log/puma
mkdir -p /var/run/puma
chown deploy. /var/run/puma
end script
start on runlevel [23]
stop on shutdown
exec sudo -u deploy sh -c "cd /var/www/projeto/current && RAILS_ENV=production bundle exec puma -C /etc/puma/projeto.conf"
respawn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment