Forum: Mongrel Passing environment variables to mongrel

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
B72ab479e51f9e65c8f4980aafea90ec?d=identicon&s=25 jenny w (Guest)
on 2008-06-03 07:51
(Received via mailing list)
The Rails app I'm working on requires an environment variable to be set.
thought I could do this in my cap deploy script. Unfortunately, it seems
that the Mongrel processes that are started up by Mongrel Cluster have
own environments and any environment variables set in the deploy script
aren't passed on. I was able to verify this by having my deploy script
run a
rake task that outputs the value of of the environment variable I need
the value is what I'd expect. I then set the Rails app to add that same
environment variable in a log message, and it shows that the value is
Does anyone have any suggestions for setting an environment variable?

B72ab479e51f9e65c8f4980aafea90ec?d=identicon&s=25 jenny w (Guest)
on 2008-06-03 08:13
(Received via mailing list)
Never mind; turns out this is a capistrano issue (running mongrel via
F1a2bd46fe87c545fd7868aa39cea5cf?d=identicon&s=25 Bill Siggelkow (Guest)
on 2008-06-03 16:10
(Received via mailing list)

Environment variables can be defined in the /etc/init.d/
mongrel_cluster script.

Bill Siggelkow
This topic is locked and can not be replied to.