mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-26 03:21:05 +00:00
Merge pull request #2373 from codeurimpulsif/contrib-system
Add contrib directory with systemd service files for front, worker and scheduler
This commit is contained in:
commit
917569ef0e
4 changed files with 47 additions and 0 deletions
5
contrib/README.md
Normal file
5
contrib/README.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Contrib
|
||||
|
||||
This directory contain some scripts, configuration files and other useful tools around BookWyrm.
|
||||
|
||||
These tools are not necessary for the proper functioning of BookWyrm but provide a helpful leg-up for integration with some third-party or to nicely fit BookWyrm into other environments.
|
14
contrib/systemd/bookwyrm-scheduler.service
Normal file
14
contrib/systemd/bookwyrm-scheduler.service
Normal file
|
@ -0,0 +1,14 @@
|
|||
[Unit]
|
||||
Description=BookWyrm scheduler
|
||||
After=network.target postgresql.service redis.service
|
||||
|
||||
[Service]
|
||||
User=bookwyrm
|
||||
Group=bookwyrm
|
||||
WorkingDirectory=/opt/bookwyrm/
|
||||
ExecStart=/opt/bookwyrm/venv/bin/celery -A celerywyrm beat -l INFO --scheduler django_celery_beat.schedulers:DatabaseScheduler
|
||||
StandardOutput=journal
|
||||
StandardError=inherit
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
14
contrib/systemd/bookwyrm-worker.service
Normal file
14
contrib/systemd/bookwyrm-worker.service
Normal file
|
@ -0,0 +1,14 @@
|
|||
[Unit]
|
||||
Description=BookWyrm worker
|
||||
After=network.target postgresql.service redis.service
|
||||
|
||||
[Service]
|
||||
User=bookwyrm
|
||||
Group=bookwyrm
|
||||
WorkingDirectory=/opt/bookwyrm/
|
||||
ExecStart=/opt/bookwyrm/venv/bin/celery -A celerywyrm worker -l info -Q high_priority,medium_priority,low_priority
|
||||
StandardOutput=journal
|
||||
StandardError=inherit
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
14
contrib/systemd/bookwyrm.service
Normal file
14
contrib/systemd/bookwyrm.service
Normal file
|
@ -0,0 +1,14 @@
|
|||
[Unit]
|
||||
Description=BookWyrm
|
||||
After=network.target postgresql.service redis.service
|
||||
|
||||
[Service]
|
||||
User=bookwyrm
|
||||
Group=bookwyrm
|
||||
WorkingDirectory=/opt/bookwyrm/
|
||||
ExecStart=/opt/bookwyrm/venv/bin/gunicorn bookwyrm.wsgi:application --bind 0.0.0.0:8000
|
||||
StandardOutput=journal
|
||||
StandardError=inherit
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in a new issue