Skip to content

Instantly share code, notes, and snippets.

@infoslack
Forked from jtadeulopes/project.conf
Last active August 29, 2015 14:13
Show Gist options
  • Save infoslack/45bb4d4ddbe42ee364a7 to your computer and use it in GitHub Desktop.
Save infoslack/45bb4d4ddbe42ee364a7 to your computer and use it in GitHub Desktop.
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