Skip to content

Instantly share code, notes, and snippets.

@roadev
Forked from arteezy/puma.service
Created June 12, 2018 23:44
Show Gist options
  • Select an option

  • Save roadev/9ae7d13d886975f067a52d86a8fb16dd to your computer and use it in GitHub Desktop.

Select an option

Save roadev/9ae7d13d886975f067a52d86a8fb16dd to your computer and use it in GitHub Desktop.

Revisions

  1. @arteezy arteezy created this gist Sep 1, 2016.
    15 changes: 15 additions & 0 deletions puma.service
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    [Unit]
    Description=Puma Rails Server
    After=network.target

    [Service]
    Type=simple
    User=deploy
    WorkingDirectory=/home/deploy/app/current
    ExecStart=/home/deploy/.rbenv/bin/rbenv exec bundle exec puma -C /home/deploy/app/shared/config/puma.rb
    ExecStop=/home/deploy/.rbenv/bin/rbenv exec bundle exec pumactl -S /home/deploy/app/shared/tmp/pids/puma.state stop
    TimeoutSec=15
    Restart=always

    [Install]
    WantedBy=multi-user.target