Created
March 7, 2017 10:23
-
-
Save hackedunit/13b070283dbee0d88139ed455fd6d32d to your computer and use it in GitHub Desktop.
Puma systemd config for cloudnet
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=cloudnet | |
Group=cloudnet | |
# Specify the path to your puma application root | |
WorkingDirectory=/home/cloudnet/app | |
# Helpful for debugging socket activation, etc. | |
# Environment=PUMA_DEBUG=1 | |
EnvironmentFile=/home/cloudnet/app/.env.production | |
# The command to start Puma | |
# ExecStart=<WD>/sbin/puma -b tcp://0.0.0.0:9292 -b ssl://0.0.0.0:9293?key=key.pem&cert=cert.pem | |
# ExecStart=/usr/local/bin/bundle exec --keep-file-descriptors puma -e production | |
ExecStart=/usr/local/bin/puma -C /home/cloudnet/app/config/puma.rb | |
Restart=always | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment