We have multiple developers working on our current app. The app uses data in the cloud. The service we use has an app_id and an app_key. We have a app_id, app_key pair on this remote cloud per environment (prod, dev, test). The issue is, when each dev needs to work on his/her own feature we don’t want to share the same remote app (using the app_id, app_key pair). So, each dev needs their own pair on this remote service. The keys are stored in a yaml file:
development:
id: 4321
key: 321
test:
id: 12345
key: 123
production:
id: <%= ENV['MASTER_ID'] %>
key: <%= ENV['MASTER_KEY'] %>
How do I set it up so that when each developer starts working on a feature he/she will already have their own keys in THEIR dev environment and they won’t need to copy/paste it back into this config file every time?
(we use git if that helps)
Each developer should have a
app_keys.ymlin his local development drive, and then you just add it to .gitignore file so it won’t be tracked by git.