Deploying app ENV variables with Rbenv, Passenger and Capistrano(blog.intercityup.com) |
Deploying app ENV variables with Rbenv, Passenger and Capistrano(blog.intercityup.com) |
Some other ideas that I've heard that may be better: store the secrets on a separate "offline" server that only the web server can talk to. Or have the file readable only by root, run a bootstrap script as root that would read the file, drop root privs, and then start the webserver.
Ask yourself if you really need multiple versions of ruby in production because if not you can save yourself the headache of setting it up.