-
-
Save roadev/9ae7d13d886975f067a52d86a8fb16dd to your computer and use it in GitHub Desktop.
Revisions
-
arteezy created this gist
Sep 1, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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