]> source.dussan.org Git - gitignore.git/commitdiff
Ignore Rails .env according recomendations 3864/head
authorDaniel Libanori <daniellibanori@gmail.com>
Thu, 28 Oct 2021 07:52:49 +0000 (04:52 -0300)
committerGitHub <noreply@github.com>
Thu, 28 Oct 2021 07:52:49 +0000 (04:52 -0300)
Reasons for making this change:
Rails dotenv ignore is not following dotenv recommendations as stated in its documentation

Links to documentation supporting these rule changes:
https://github.com/bkeepers/dotenv#what-other-env-files-can-i-use

Rails.gitignore

index ae9df644840cee7efd1122b33fffd802eeef6529..c55bb7132e09a1ace72c955f02a78926072ef7a5 100644 (file)
@@ -27,7 +27,7 @@ config/master.key
 # dotenv, dotenv-rails
 # TODO Comment out these rules if environment variables can be committed
 .env
-.env.*
+.env*.local
 
 ## Environment normalization:
 /.bundle