Add the files we use for production deployments
We are using apache as reverse proxy and two systemd units (puma & delayed job) for events.opensuse.org. Track them also in this project, might be useful for others.
This commit is contained in:
parent
9cc5c83477
commit
228190396c
4 changed files with 76 additions and 0 deletions
17
dist/osem-dj.service
vendored
Normal file
17
dist/osem-dj.service
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
[Unit]
|
||||
Description=Open Source Event Manager Delayed Jobs
|
||||
Wants=osem.service
|
||||
Before=osem.service
|
||||
|
||||
[Service]
|
||||
User=osem
|
||||
EnvironmentFile=/home/osem/events/current/.env.production
|
||||
WorkingDirectory=/home/osem/events/current
|
||||
ExecStart = /usr/bin/bundle exec bin/delayed_job -e production start
|
||||
ExecStop = /usr/bin/bundle exec bin/delayed_job -e production stop
|
||||
Type = forking
|
||||
PIDFile = /home/osem/events/current/tmp/pids/delayed_job.pid
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue