-
-
Save infoslack/45bb4d4ddbe42ee364a7 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
description "project api server config" | |
start on started project_name | |
stop on stopped project_name | |
pre-start script | |
mkdir -p /var/log/puma | |
chown www-data. /var/log/puma | |
mkdir -p /var/run/puma | |
chown www-data. /var/run/puma | |
end script | |
chdir /var/www/project/current/ | |
respawn | |
exec sudo -E -u deploy sh -c "bundle exec puma -C config/puma.rb -e production" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment