I want to set GEM_HOME and GET_PATH when nginx starts, is the /etc/init.d/nginx script an ideal place for this, specifically the function start() ?
Do I just add: export GEM_HOME=/path/to/home/... export GEM_PATH=/path/to/gempath/....
Does this seem ok?
(i'm running nginx that was installed by phusion, rails3, rvm on ubuntu)