figaro icon indicating copy to clipboard operation
figaro copied to clipboard

Multiple environments, non heroku

Open prasann opened this issue 9 years ago • 2 comments

I have a total of 6 environments to be deployed. Currently all the passwords are there in a single application.yml file. I am deploying to my own app server using Capistrano. I have written a task to copy the application.yml file from local to the deploy box's shared directory and create a symlink to the shared directory from current.

This works well. Since these keys don't change often, i have commented out the file copy part so accidentally application.yml file is not overwritten.

Just wanted to check with the people how they manage the keys using Figaro, Capistrano combination.

Now one problem i see is that all my environments have all the keys and passwords. Any better way to do this?

prasann avatar Jan 11 '16 05:01 prasann

I thought

Figaro convention is to never commit configuration files.

but that doesn't answer your question (or mine). I'm in a similar boat.

dmitrym0 avatar Feb 16 '16 05:02 dmitrym0

I too have similar requirement.

We have been using AWS and any settings store locally ends up being burnt into the machine image from which new instances are launched. So if any settings change, we'll have to burn a new machine image and relaunch whatever number is running.

amitpatelx avatar Mar 01 '16 07:03 amitpatelx