Homec4science

Add .env to optionally ignored files

Authored by Max Woolf <maximus@zingysaturn.co.uk> on May 12 2016, 09:53.

Description

Add .env to optionally ignored files

Many twelve-factor apps use environment variables rather than the built in Rails secrets mechanism to store secrets.
The dotenv gem is widely used for this purpose and allows environment variables to be loaded from the .env file. However, this file should not be committed to source control.

This PR just adds the .env file to .gitignore so that these secrets aren't accidentally committed. In some rare instances, it may be required that this file is committed to source control so I've added it to the list of files that can be removed if the developer is ok with secrets being committed.

Details

Committed
Max Woolf <maximus@zingysaturn.co.uk>May 12 2016, 09:53
Pushed
aubortJul 2 2018, 16:12
Parents
rGITIGNOREf454371ec664: Merge pull request #1972 from Kagamine/master
Branches
Unknown
Tags
Unknown

Event Timeline

Max Woolf <maximus@zingysaturn.co.uk> committed rGITIGNORE85147407e49b: Add .env to optionally ignored files (authored by Max Woolf <maximus@zingysaturn.co.uk>).May 12 2016, 09:53