Setting Environment variables with Rubber/Capistrano
Asked Answered
T

0

6

I need to set some environment variables programmatically before my rubber instances start the webserver. I've set the environment variables in the config/rubber/common/rubber.profile file. When I ssh into the instance, the Env variables are set properly and if I run the Rails console the variables are loaded in the environment. However, the webserver appears to be loaded prior to the env variables being set. The apis fail on the web server due to the initializers having blank ENV vars. How do I make sure that Rubber sets the bash profile prior to starting the web server?

Thermoluminescent answered 26/12, 2013 at 17:29 Comment(2)
are you using passenger as a webserver?Oceanid
Yes I'm using passenger. I'm using this template: github.com/rubber/rubber/tree/master/templates/…Thermoluminescent

© 2022 - 2024 — McMap. All rights reserved.