Created
February 12, 2017 22:50
-
-
Save duderamos/eda19027ec88bb05de421d8300e9ff75 to your computer and use it in GitHub Desktop.
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 characters
[Unit] | |
Description=Puma Server | |
[Service] | |
Type=forking | |
User=netengine | |
WorkingDirectory=/var/www/puma/current | |
Environment=RAILS_ENV=staging | |
SyslogIdentifier=puma | |
PIDFile=/var/www/puma/current/tmp/pids/puma.pid | |
Restart=always | |
ExecStart=/bin/sh -c "/etc/rbenv/shims/bundle exec puma -C /var/www/puma/current/config/puma.rb" | |
ExecReload=/bin/sh -c "/etc/rbenv/shims/bundle exec pumactl -S /var/www/puma/current/tmp/puma.state stop" | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment