mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-10 00:56:19 +01:00
Determine paths to commands using shutil
Change context names to avoid colliding with base command pythonpath option
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
[program:beat]
|
||||
command={{ pythonpath}}/celery -A {{ project_name }} beat
|
||||
command={{ celery }} -A {{ project_name }} beat
|
||||
directory={{ project_directory }}
|
||||
user=allianceserver
|
||||
stdout_logfile={{ project_directory }}/log/beat.log
|
||||
@@ -10,7 +10,7 @@ startsecs=10
|
||||
priority=998
|
||||
|
||||
[program:worker]
|
||||
command={{ pythonpath}}/celery -A {{ project_name }} worker
|
||||
command={{ celery }} -A {{ project_name }} worker
|
||||
directory={{ project_directory }}
|
||||
user=allianceserver
|
||||
numprocs=1
|
||||
@@ -26,7 +26,7 @@ priority=998
|
||||
[program:gunicorn]
|
||||
user = allianceserver
|
||||
directory={{ project_directory }}
|
||||
command={{ pythonpath}}/gunicorn {{ project_name}}.wsgi --workers=3 --timeout 120
|
||||
command={{ gunicorn }} {{ project_name }}.wsgi --workers=3 --timeout 120
|
||||
autostart=true
|
||||
autorestart=true
|
||||
stopsignal=INT
|
||||
|
||||
Reference in New Issue
Block a user