1

I'm trying to deploy a flask app to my Cent OS server but I think it can't read the environment variables that are being set by supervisor.

Here's my supervisor conf for the flask app

[program:philms]
environment=PHILMS_SECRET="supersecretkey",PHILMS_API_SECRET="shmickles"
command = gunicorn philms.app:create_app\(\) -b 0.0.0.0:5000
directory = /sites/philms
user = wilson

I've tried setting the variables in my .bashrc but that didn't work. And I can't see anything wrong with my supervisor conf.

Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343
danwilson
  • 186
  • 1
  • 8

0 Answers0