Created
October 31, 2013 18:49
-
-
Save infoslack/7254872 to your computer and use it in GitHub Desktop.
puma upstart
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
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