Skip to content

Instantly share code, notes, and snippets.

View FinnWoelm's full-sized avatar

Finn Woelm FinnWoelm

View GitHub Profile
@FinnWoelm
FinnWoelm / puma.service
Last active November 26, 2021 09:23 — forked from arteezy/puma.service
Manage Puma with systemd on Ubuntu 16.04 and rvm
[Unit]
Description=Puma Rails Server
After=network.target
[Service]
Type=simple
User=deploy
WorkingDirectory=/var/apps/upshift/current
ExecStart=/usr/local/rvm/bin/rbenv default do bundle exec pumactl -S /var/apps/upshift/shared/tmp/pids/puma.state -F /var/apps/upshift/shared/puma.rb start
ExecStop=/usr/local/rvm/bin/rbenv default do bundle exec pumactl -S /var/apps/upshift/shared/tmp/pids/puma.state -F /var/apps/upshift/shared/puma.rb stop