Initial commit
This commit is contained in:
commit
2f0316d05f
12 changed files with 426 additions and 0 deletions
22
myapp.service
Normal file
22
myapp.service
Normal 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue