Hi,
So my nginx.conf is pointing to this wrapper (I installed nginx using
the phusion installer):
/opt/nginx/confg/nginx.conf
http {
passenger_root /usr/local/rvm/gems/ree-1.8.7-2010.02/gems/
passenger-3.0.0;
passenger_ruby /usr/local/rvm/wrappers/ree-1.8.7-2010.02/ruby
}
So from what I understand from the blog post, I should add the export
statements to the wrapper correct, i.e in the file
/usr/local/rvm/wrappers/ree-1.8.7-2010.02/ruby which contains:
#!/usr/bin/env bash
if [[ -s "/usr/local/rvm/environments/ree-1.8.7-2010.02" ]] ; then
source "/usr/local/rvm/environments/ree-1.8.7-2010.02"
exec ruby "$@"
else
echo "ERROR: Missing RVM environment file: '/usr/local/rvm/
environments/ree-1.8.7-2010.02'" >&2
exit 1
fi
My web application is suppose to run ree@rails3 (ruby + gemset)
When I go to /current which has my .rvmrc and do a rvm info I get:
GEM_HOME: "/usr/local/rvm/gems/ree-1.8.7-2010.02@rails3"
GEM_PATH: "/usr/local/rvm/gems/ree-1.8.7-2010.02@rails3:/usr/
local/rvm/gems/ree-1.8.7-2010.02@global"
Is this what I should add to the wrapper script? If yes, where
exactly right at the top?
On Dec 5, 12:54 pm, Hongli Lai <
hon...@phusion.nl> wrote:
> On Sun, Dec 5, 2010 at 5:28 PM, Gitted <
sahmed1...@gmail.com> wrote:
> > How can I find out what GEM_HOME and GEM_PATH passenger is using?
>
> It uses whatever environment variable your web server starts with. How
> your web server gets your environment variable depends on your system.
> However you can customize environment variables according to the
> instructions athttp://
blog.phusion.nl/2008/12/16/passing-environment-variables-to-ru...
> E-mail:
i...@phusion.nl