Skip to content

Commit

Permalink
Merge pull request #1920 from Retrospring/task/service-examples
Browse files Browse the repository at this point in the history
Add example systemd service files
  • Loading branch information
nilsding authored Oct 29, 2024
2 parents d853620 + b5b6461 commit d0be686
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/systemd/retrospring-sidekiq.service
Original file line number Diff line number Diff line change
@@ -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 changes: 19 additions & 0 deletions docs/systemd/retrospring-web.service
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d0be686

Please sign in to comment.