July 12, 2007...12:06 pm

changing environment variables followed by mongrel_rails restart

Jump to Comments

When making a change to environment variables such as PATH and JAVA_HOME, don’t use “mongrel_rails restart” to bounce the rails app to pick up the changed values. You could find yourself wasting much of the morning futilely chasing obscure shell/mongrel/capistrano issues, desperately seeking any kind of hint as to why the rails app was refusing to pick up the changes.

No, don’t do that at all.

Much better to do “mongrel_rails stop” and “mongrel_rails start + assorted params” right away and find it all works perfectly well.

Leave a Reply