mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 08:39:52 +01:00
Add example systemd service files
This commit is contained in:
parent
d8536205df
commit
b5b64616d8
2 changed files with 37 additions and 0 deletions
18
docs/systemd/retrospring-sidekiq.service
Normal file
18
docs/systemd/retrospring-sidekiq.service
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
# TODO: Replace "/home/retrospring/retrospring" with directory of your Retrospring installation
|
||||||
|
|
||||||
|
[Unit]
|
||||||
|
Description=retrospring-sidekiq
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=retrospring
|
||||||
|
WorkingDirectory=/home/retrospring/retrospring
|
||||||
|
Environment="RAILS_ENV=production"
|
||||||
|
ExecStart=/home/retrospring/.rbenv/shims/bundle exec sidekiq -e production -C ./config/sidekiq.yml
|
||||||
|
TimeoutSec=15
|
||||||
|
Restart=always
|
||||||
|
WorkingDirectory=/home/retrospring/retrospring
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
19
docs/systemd/retrospring-web.service
Normal file
19
docs/systemd/retrospring-web.service
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
# TODO: Replace "/home/retrospring/retrospring" with directory of your Retrospring installation
|
||||||
|
|
||||||
|
[Unit]
|
||||||
|
Description=retrospring-web
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=retrospring
|
||||||
|
WorkingDirectory=/home/retrospring/retrospring
|
||||||
|
Environment="RAILS_ENV=production"
|
||||||
|
Environment="PORT=3000"
|
||||||
|
ExecStart=/home/retrospring/.rbenv/shims/bundle exec puma
|
||||||
|
TimeoutSec=15
|
||||||
|
Restart=always
|
||||||
|
WorkingDirectory=/home/retrospring/retrospring
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in a new issue