Created
August 26, 2023 07:10
-
-
Save pecha7x/e3c1f66097cf19f858268fa0cea5dc4c to your computer and use it in GitHub Desktop.
Revisions
-
pecha7x created this gist
Aug 26, 2023 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ # 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