Re:Twelve Factors of Web Application Development
by joevandyk on Wednesday November 23, 2011 @12:36AM
(#3268912)
I use chef and runit's chpst (like envdir) to set the environment variables.
The production / staging environment chef configuration is stored in a tightly-locked down git repository that can only be accessed from production.
Chef reads the production configuration information, puts the environment variables into envdir-complaint files in a directory, runit uses chpst/envdir to start the process with the correct environment settings... and that's pretty much it.
The production / staging environment chef configuration is stored in a tightly-locked down git repository that can only be accessed from production.
Chef reads the production configuration information, puts the environment variables into envdir-complaint files in a directory, runit uses chpst/envdir to start the process with the correct environment settings... and that's pretty much it.