How to set environment variables in Supervisor service
How do you export environment variables in the command executed by Supervisor? I first tried: command="export SITE=domain1; python manage.py command" but Supervisor reports "can't find command". So then I tried: command=/bin/bash -c "export SITE=domain1; python manage.py command" and the command runs, but this seems to interfere with the daemonization since when I stop the Supervisor daemon, all the other daemons it's running aren't stopped. To add a single environment variable, You can do something like this. [program:django] environment=SITE=domain1 command = python manage.py command But, if