-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
supervisor can't get linux environment variable #1044
Comments
Please ask questions about using Supervisor on the supervisor-users mailing list. We use this issue tracker mainly for bugs in Supervisor itself.
You are trying to use an environment variable called Here is an example that shows
|
|
|
I encountered the same problem. When the operating system restarts (centos7), it cannot be loaded into the variable set in / etc / profile. must kill the supervisor process and restart, Is there a solution now? |
I have wrote
export PROJECT_ENV='PRODUCTION'
in /etc/profile andsource
itmy conf is in
/etc/supervisor/conf.d
error: <class 'xmlrpclib.Fault'>, <Fault 92: "CANT_REREAD: Format string 'PROJECT_ENV=%(ENV_PROJECT_ENV)s' for 'supervisord.environment' contains names ('ENV_PROJECT_ENV') which cannot be expanded. Available names: ENV_LANG, ENV_PATH, here">: file: /usr/lib/python2.7/xmlrpclib.py line: 800
In my code I use
get environment variable but I only get 'TEST'
if I remove
I only get 'TEST' and I can't get 'PRODUCTION'
This can't not work too
The text was updated successfully, but these errors were encountered: