I can't seem to figure out how to append to the default path in a supervisord program config.
I can reset the path:
environment=PATH="/home/site/environments/master/bin"
But when I try:
environment=PATH="/home/site/environments/master/bin:$PATH"
I see that supervisord doesn't evaluate $PATH
.
Google wasn't a big help on this for some reason, I cannot believe I'm the first person to need this.
Supervisord must have support for this, any idea what it is?
This feature has been added to Supervisor back in 2014
environment=PATH="/home/site/environments/master/bin:%(ENV_PATH)s"
see https://github.com/Supervisor/supervisor/blob/95ca0bb6aec582885453899872c60b4174ccbd58/supervisor/skel/sample.conf#L7
See also https://stackoverflow.com/questions/12900402/supervisor-and-environment-variables
I reviewed the documentation and agree with Dmitry.
The current answer is: supervisor doesn't do this directory, but creating a wrapper script will help.