Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Including environment variables in uWSGI ini files?

I am using .ini files (as per uWSGI docs). It's good practise to use environment variables, but I wasn't able to get the $+environment name syntax working.

Is there a special syntax I can use to access them?

like image 659
stackoverflowuser95 Avatar asked Jan 24 '14 06:01

stackoverflowuser95


1 Answers

The syntax is $(var), for example:

chdir = $(HOME)/foobar

See also How uWSGI parses config files.

like image 131
roberto Avatar answered Sep 20 '22 02:09

roberto