Created
August 26, 2023 07:10
-
-
Save pecha7x/e3c1f66097cf19f858268fa0cea5dc4c to your computer and use it in GitHub Desktop.
Puma Service config
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
# see the steps at https://damuz91.medium.com/setting-up-puma-as-a-service-in-systemd-in-ubuntu-18-9d2c1fe774e4 | |
# but to use ExecStart as described bellow | |
[Unit] | |
Description=Puma HTTP Server | |
After=network.target | |
[Service] | |
Type=simple | |
User=deploy | |
WorkingDirectory=/home/deploy/workflows-assistant/current | |
Environment=RAILS_ENV=production | |
#ExecStart=bundle exec puma -C /home/deploy/workflows-assistant/shared/puma.rb | |
ExecStart=/home/deploy/.rvm/bin/rvm all do bundle exec puma -C /home/deploy/workflows-assistant/shared/puma.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