Skip to content

Instantly share code, notes, and snippets.

@roccogalluzzo
Created February 5, 2016 14:28
Show Gist options
  • Save roccogalluzzo/b7ba7df806c2b1e77e13 to your computer and use it in GitHub Desktop.
Save roccogalluzzo/b7ba7df806c2b1e77e13 to your computer and use it in GitHub Desktop.
[Unit]
Description=Puma application server
Wants=mysqld.service
After=network.target
[Service]
WorkingDirectory=/var/www/rails-app/current
Environment=RAILS_ENV=production
PIDFile=/var/www/shared/pids/puma.pid
ExecStart=/usr/bin/bundle exec puma -e production -b unix:///var/www/shared/pids/puma.sock --pidfile /var/www/shared/pids/puma.pid
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment