Skip to content

Instantly share code, notes, and snippets.

@alobato
Last active June 28, 2017 22:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alobato/179c337047282e599fc70357ae61f2e1 to your computer and use it in GitHub Desktop.
Save alobato/179c337047282e599fc70357ae61f2e1 to your computer and use it in GitHub Desktop.
[Unit]
Description=Puma HTTP Server
After=network.target
[Service]
Type=simple
User=deployer
Group=deployer
WorkingDirectory=/home/deployer/apps/appname/current
ExecStart=/home/deployer/.rbenv/shims/bundle exec puma --bind "unix:///home/deployer/apps/appname/shared/sockets/puma.sock" --environment production --pidfile "/home/deployer/apps/appname/shared/pids/puma.pid" --redirect-stdout "/home/deployer/apps/appname/shared/log/puma.stdout.log" --redirect-stderr "/home/deployer/apps/appname/shared/log/puma.stderr.log" --state "/home/deployer/apps/appname/shared/pids/puma.state" --control auto --threads 1:6 --workers 1
Restart=always
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment