I've been trying to get Jason Garber's RedClot4 extension to work on my
Dreamhost account.
Dreamhost support tell me that Passenger ignores environment variables.
IS THIS REALLY SO ?
OK, so having GEM_PATH set in my .bash_profile would be ignored, then
and so all the stuff about local gems would be pointless.
So what I did instead was put the ENV settings in config/environment.rb
This makes them "inside" and not imported from the environment.
That didn't work either. Dreamhost support told me
That still doesn't work, unfortunately, ANY environment
variables do not work within passenger. It's not possible
to get custom environment settings within passenger working.
This does not make sense to me. This isn't within Passenger, this
should be the ruby code itself.
I'm now at a complete loss. Dreamhost suggest using fcgi instead of
Passenger.
Can anyone confirm this shortcoming of Passenger?
Can anyone account for why ?
I find it hard to beleive that Passenger ignores all of ENV.
This
http://craigjolicoeur.com/blog/2008/11/set-rails_env-for-phusion-passenger-on-dreamhost/
seems to imply that settings in config/environment.rb work.
I also note that Dreamhost's own documentation at
http://wiki.dreamhost.com/Passenger
seems to contradict what support tells me:
A couple of technical notes
...
* You can use your local gem repository if you set
ENV['GEM_PATH'] = 'path-to-your-gem-repository'
in the config/environment.rb file. The same path should be set
in shell's environment variables GEM_HOME and GEM_PATH so you
can use the gem program to install/upgrade your own gems. You
can reload the config file by typing "touch tmp/restart.txt" in
your base directory.
Refs:?
http://groups.google.com/group/phusion-passenger/browse_thread/thread/79474d37028f2a03
http://groups.google.com/group/phusion-passenger/browse_thread/thread/8fe8222e5f9eeef1
--
shin (n): A device for finding furniture in the dark.
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant