Created
December 22, 2017 12:53
-
-
Save gillien/00685d43df26078e40a7ddf1fc0fbd63 to your computer and use it in GitHub Desktop.
This file contains 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 | |
After=network.target | |
# Uncomment for socket activation (see below) | |
# Requires=puma.socket | |
[Service] | |
# Foreground process (do not use --daemon in ExecStart or config.rb) | |
Type=simple | |
# Preferably configure a non-privileged user | |
User=deploy | |
Group=deploy | |
# Specify the path to your puma application root | |
WorkingDirectory=/home/deploy/quantizr_web/current | |
# Helpful for debugging socket activation, etc. | |
# The command to start Puma | |
ExecStart=/home/deploy/.rvm/bin/rvm 2.4.2 exec bundle exec puma -C /home/deploy/quantizr_web/current/config/puma.rb | |
ExecStop=/home/deploy/.rvm/bin/rvm 2.4.2 exec bundle exec pumactl -S /home/deploy/quantizr_web/shared/pids/puma.state stop | |
Restart=always | |
[Install] | |
WantedBy=multi-user.target |
Author
gillien
commented
Dec 22, 2017
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment