Multiple production Rails credentials for multiple production servers #532
-
I need a different credentials.yml.env file for every production server. Unfortunately it is not an option to use environment names different from |
Beta Was this translation helpful? Give feedback.
Answered by
nickhammond
Oct 24, 2023
Replies: 1 comment 8 replies
-
@frenkel Are these secrets or clear env variables? |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Got it, that's helpful and let me see if I can clear things up a bit. So you don't need to duplicate those 50 lines to each file, something like this should work:
deploy.yml - Your full deploy details, all 50+ lines.
deploy.production-1.yml - This is the entire file.
.env.production-1
Deploying with:
Repeat for production-2, production-3, etc.