0

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?

Mel
  • 2,481
  • 26
  • 113
  • 273

1 Answers1

0

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.

Community
  • 1
  • 1
Zzz
  • 1,703
  • 1
  • 14
  • 21
  • But how can he use the application if he doesnt have the file – Mel Jan 17 '17 at 02:49
  • You can tell him/her personally those ENV variables, so they can be set directly. But I guess those ENV variables you are afraid to share are external services credentials, usually these services would provide another set of credentials for you to test (staging/sandbox), you can share this to your coding coach, so it won't affect your production env. – Zzz Jan 17 '17 at 02:58