ruby-on-railsrubygitfigaro-ruby

Rails - Figaro gem - how can I add a collaborator to my repo without sharing application.yml variables


I am using rails 5 with figaro gem to manage my environment variables.

I have just started working with a coding coach, who is setting up my repo on his system.

Is there a way for me to share my repo (so that he can configure it) without giving him the codes in my application.yml?


Solution

  • Add application.yml to git ignore. If the file is already commited in git history, you can follow instruction in here to let git 'forget' it completely.