Supervisor and Environment Variables

前端 未结 5 1149
醉梦人生
醉梦人生 2020-11-28 04:13

I really don\'t know how to get supervisor to work with environment variables.

Below is a configuration snippet.

[program:htNotificationService]
prio         


        
5条回答
  •  一整个雨季
    2020-11-28 04:26

    Referencing existing env vars is done with %(ENV_VARNAME)s

    ( see https://github.com/Supervisor/supervisor/blob/master/supervisor/skel/sample.conf )

    Setting multiple environment variables is done by separating them with commas

    ( see http://supervisord.org/subprocess.html#subprocess-environment )

    Try:

    environment=PYTHONPATH=/opt/mypypath:%(ENV_PYTHONPATH)s,PATH=/opt/mypath:%(ENV_PATH)s
    

提交回复
热议问题