Open tannakartikey opened 7 years ago
I looked into this and found that if you have
# Ignore application configuration
/config/application.yml
in your .gitignore, nothing will be appended. However, if you removed either of the two lines, it will append both lines and make the file redundant.
It seems that figaro should really only care about /config/application.yml
. I'll put in a PR for this fix.
We shouldn't hardcode the path also. So it should just care about application.yml
@laserlemon your views?
As of today, we should hardcore the path because that's exactly where Figaro will look for it. Thank you for checking on this!
Currently, even if the application.yml is ignored using .gitignore file, on running
bundle exec figaro install
, the entry is appended again.The entry can be present already if you are not the only one in the team and someone started using Figaro before you.