Determine paths to commands using shutil

Change context names to avoid colliding with base command pythonpath option
This commit is contained in:
Adarnof
2017-10-24 12:48:23 -04:00
parent 57a26b90cb
commit 859c5b3fa1
2 changed files with 31 additions and 54 deletions

View File

@@ -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