Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pecha7x/e3c1f66097cf19f858268fa0cea5dc4c to your computer and use it in GitHub Desktop.
Save pecha7x/e3c1f66097cf19f858268fa0cea5dc4c to your computer and use it in GitHub Desktop.

Revisions

  1. pecha7x created this gist Aug 26, 2023.
    19 changes: 19 additions & 0 deletions puma_workflows-assistant_production.service
    Original 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