supervisord environment variables setting up application
Posted
by
user1434844
on Stack Overflow
See other posts from Stack Overflow
or by user1434844
Published on 2012-06-04T09:49:22Z
Indexed on
2012/06/04
10:40 UTC
Read the original article
Hit count: 224
I'm running an application from supervisord and I have to set up an environment for it. There are about 30 environment variables that need to be set. I've tried putting all on one big
environment=
line and that doesn't seem to work. I've also tried multiple enviroment= lines, and that doesn't seem to work either. I've also tried both with and without ' around the env value.
What's the best way to set up my environment such that it remains intact under supervisord control? Should I be calling my actual program (tornado, fwiw) from a shell script with the environment preloaded there? Ideally, I'd like to put all of the enviroment variables into an include file and load them with supervisor, but I'm open to doing it another way.
© Stack Overflow or respective owner