Setting environment variables with Rubber / Capistrano

I need to set some environment variables programmatically before my rubber instances start the web server. I set the environment variables in config/rubber/common/rubber.profile . When I pass ssh to the instance, Env variables are set correctly, and if I run the Rails console, the variables are loaded into the environment. However, the web server seems to load before setting env variables. Apis error on web server due to initializers with empty ENV vars. How to make sure Rubber installs a bash profile before starting a web server?

+6
source share

All Articles