0

Hi i have set up some variables to Linux(have added them to ~/.bashrc).

I know that it is possible to set variables to supervisor environment= KEY=value and to gunicorn i may simple add in config export KEY1='value'

Is any way to add variables only to ~/.bashrc and take them to all configs?

Thx for any help.

Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343
Beliaf
  • 577
  • 2
  • 8
  • 25

1 Answers1

0

If supervisor/gunicorn is run as the same user it should already be set and available, otherwise you have to list them manually. Or use python-decouple and an .env file which feels much more right than relying on how your SSH session personally prefers its bash.

Peter Bengtsson
  • 7,235
  • 8
  • 44
  • 53