Skip to content

Instantly share code, notes, and snippets.

@damuz91
Last active August 28, 2020 23:55
Show Gist options
  • Save damuz91/81e50c341cba30a2100fbcbedc3ff0c7 to your computer and use it in GitHub Desktop.
Save damuz91/81e50c341cba30a2100fbcbedc3ff0c7 to your computer and use it in GitHub Desktop.
My Puma systemd file
[Unit]
Description=Puma HTTP Server
After=network.target
[Service]
Type=simple
User=myuser
WorkingDirectory=/path/to/my/rails-app
Environment=RAILS_ENV=production
ExecStart=/home/ubuntu/.rvm/wrappers/ruby-2.7.0/bundle -C /path/to/my/rails-app/config/puma/production.rb
Restart=always
KillMode=process
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment