I would like to add a linux environment variable for my differents applications written in PHP and Ruby.
Its goal is to differntiate between 'production' and 'development' linux environment.
How to have an linux environment variable (ex : APPLICATION_ENV='production') that can be accessed with PHP and Ruby?
Edit 1 :
My first solution was :
for Apache/PHP in vhost :
SetEnv APPLICATION_ENV 'production'
for Ruby :
However, this is two places to the same value... There are no solution to merge it in one place ? par exemple to use /etc/environment