Skip to content

Instantly share code, notes, and snippets.

@bhuiyanmobasshir94
Created August 7, 2019 07:09
Show Gist options
  • Save bhuiyanmobasshir94/386a5c6f0d67d6a4ebe2f75e01dcb7f7 to your computer and use it in GitHub Desktop.
Save bhuiyanmobasshir94/386a5c6f0d67d6a4ebe2f75e01dcb7f7 to your computer and use it in GitHub Desktop.
[program:celery]
directory = <django_project_directory> example:[/home/ubuntu/prod/api]
command = <virual_environment_directory/bin/celery> <command_to_be_executed> example: [/home/ubuntu/anaconda3/envs/api_env/bin/celery] [-A prodapi worker -l info --without-gossip --without-mingle --without-heartbeat -Ofair --pool=solo]
stdout_logfile=/var/log/supervisor/celery.log
stderr_logfile=/var/log/supervisor/celery.log
user=<username> example: [ubuntu]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment