Skip to content

Instantly share code, notes, and snippets.

@masudcsesust04
Forked from arteezy/puma.service
Created July 8, 2021 16:00

Revisions

  1. @arteezy arteezy revised this gist Dec 17, 2019. No changes.
  2. @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