-
Notifications
You must be signed in to change notification settings - Fork 1
/
supervisor.onlinejudge.conf
31 lines (28 loc) · 1.36 KB
/
supervisor.onlinejudge.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Make a symbolic link of this file to /etc/supervisor/conf.d/
[program:server]
user = onlinejudge
directory = /home/onlinejudge/online-judge/
command = /home/onlinejudge/.pyenv/versions/3.5.1-onlinejudge/bin/gunicorn -c configs/gunicorn.py app:app
autostart=true
autorestart=true
stderr_logfile=/home/onlinejudge/server.err
stdout_logfile=/home/onlinejudge/server.out
environment = VIRTUAL_ENV="/home/onlinejudge/.pyenv/versions/3.5.1-onlinejudge"
[program:celery]
user = onlinejudge
directory = /home/onlinejudge/online-judge/
command = /home/onlinejudge/.pyenv/versions/3.5.1-onlinejudge/bin/celery worker -A app.celery --loglevel=info
autostart=true
autorestart=true
stderr_logfile=/home/onlinejudge/celery.err
stdout_logfile=/home/onlinejudge/celery.out
environment = VIRTUAL_ENV="/home/onlinejudge/.pyenv/versions/3.5.1-onlinejudge",PYTHONIOENCODING="utf-8"
[program:flower]
user = onlinejudge
directory = /home/onlinejudge/online-judge/
command = /home/onlinejudge/.pyenv/versions/3.5.1-onlinejudge/bin/flower --port=5555 --persistent=True --db=/home/onlinejudge/flower --broker_api=http://guest:guest@localhost:15672/api/ -A app.celery --inspect_timeout=10000
environment = VIRTUAL_ENV="/home/onlinejudge/.pyenv/versions/3.5.1-onlinejudge",PYTHONIOENCODING="utf-8"
autostart=true
autorestart=true
stderr_logfile=/home/onlinejudge/flower.err
stdout_logfile=/home/onlinejudge/flower.out