Skip to content

Instantly share code, notes, and snippets.

@Mohammed-Sunasra
Created December 30, 2018 07:08
Show Gist options
  • Save Mohammed-Sunasra/f8f3030885956c596e9ccbf5aac9a82f to your computer and use it in GitHub Desktop.
Save Mohammed-Sunasra/f8f3030885956c596e9ccbf5aac9a82f to your computer and use it in GitHub Desktop.
Supervisor Configuration with Conda Python environment
[program:{program_name}]
directory=/home/{project_name}/api/falcon_api/app
environment=PATH=/home/anaconda3/envs/{env_name}/bin
command=/home/anaconda3/envs/{env_name}/bin/gunicorn app:api -b 0.0.0.0
autostart=true
autorestart=true
stderr_logfile=/var/log/{project_name}/{filename}.err.log
stdout_logfile=/var/log/{project_name}/{filename}.out.log
NOTE:
1. Replace {program_name} with supervisor process name you want to give.
2. Replace {project_name} with the name of your project.
3. Replace {env_name} with the name of your conda virtual environment.
4. Replace {filename} with any log file name you want to give.w
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment