Last active
August 28, 2020 23:55
-
-
Save damuz91/81e50c341cba30a2100fbcbedc3ff0c7 to your computer and use it in GitHub Desktop.
My Puma systemd file
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 | |
After=network.target | |
[Service] | |
Type=simple | |
User=myuser | |
WorkingDirectory=/path/to/my/rails-app | |
Environment=RAILS_ENV=production | |
ExecStart=/home/ubuntu/.rvm/wrappers/ruby-2.7.0/bundle -C /path/to/my/rails-app/config/puma/production.rb | |
Restart=always | |
KillMode=process | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment