# Working directory has to be the top directory "workout_challenge" that contains the sub-folders "src-frontend" and "src-backend" [supervisord] nodaemon=true # Supervisord frontend to see status / restart / stop the below processes [inet_http_server] port = 9001 priority=100 # Redis sever for caching and celery backend [program:redis] directory=/workout_challenge/src-backend/data command=/usr/bin/redis-server stdout_logfile=/dev/stdout stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0 stdout_logfile_maxbytes=0 autorestart=true priority=200 stopwaitsecs=20 # Celery for Django for task queuing [program:celery-worker] directory=/workout_challenge/src-backend command=sh -c 'while ! nc -z localhost 6379 /usr/share/nginx/html/config.js && /usr/sbin/nginx -g "daemon off;"' stdout_logfile=/dev/stdout stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0 stdout_logfile_maxbytes=0 autorestart=true priority=700