Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pecha7x/e3c1f66097cf19f858268fa0cea5dc4c to your computer and use it in GitHub Desktop.
Save pecha7x/e3c1f66097cf19f858268fa0cea5dc4c to your computer and use it in GitHub Desktop.
Puma Service config
# see the steps at https://damuz91.medium.com/setting-up-puma-as-a-service-in-systemd-in-ubuntu-18-9d2c1fe774e4
# but to use ExecStart as described bellow
[Unit]
Description=Puma HTTP Server
After=network.target
[Service]
Type=simple
User=deploy
WorkingDirectory=/home/deploy/workflows-assistant/current
Environment=RAILS_ENV=production
#ExecStart=bundle exec puma -C /home/deploy/workflows-assistant/shared/puma.rb
ExecStart=/home/deploy/.rvm/bin/rvm all do bundle exec puma -C /home/deploy/workflows-assistant/shared/puma.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