Created
March 15, 2021 04:24
-
-
Save hardywu/7101746c62613def72163c4bde6aa864 to your computer and use it in GitHub Desktop.
Puma HTTP Server for ruby on rails
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 HTTP Server for rails (staging) | |
After=network.target | |
[Service] | |
Type=simple | |
User=deploy | |
WorkingDirectory=/home/deploy/apps/myApp/current | |
Environment=RBENV_ROOT=$HOME/.rbenv | |
ExecStart=/home/deploy/.rbenv/shims/bundle exec puma -C /home/deploy/apps/myApp/shared/puma.rb | |
ExecReload=/bin/kill -TSTP $MAINPID | |
StandardOutput=append:/home/deploy/apps/myApp/current/log/puma.access.log | |
StandardError=append:/home/deploy/apps/myApp/current/log/puma.error.log | |
Restart=always | |
RestartSec=1 | |
SyslogIdentifier=puma | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment