Initial commit

This commit is contained in:
James 2025-08-18 02:17:21 -05:00
commit 2f0316d05f
12 changed files with 426 additions and 0 deletions

22
myapp.service Normal file
View file

@ -0,0 +1,22 @@
[Unit]
Description=My roda template
After=network.target
[Service]
User=myapp
Group=myapp
WorkingDirectory=/opt/myapp
Environment=RACK_ENV=production
ExecStart=/opt/myapp/bin/puma
TimeoutStopSec=300
KillMode=mixed
Restart=on-failure
[Install]
WantedBy=multi-user.target
# Can copy this unit file into /etc/systemd/system/
# then edit for your installation details (user, group, directory, exec, app name)
# run "sudo systemctl daemon-reload",
# then "sudo systemctl enable --now -q myapp.service"