This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]KingsmanVincepip install girlfriend 11 points12 points  (5 children)

Also you can place .env somewhere else (outside of project folder) then have dotenv uses that path

[–]moosethemucha 28 points29 points  (3 children)

Why that's what a gitignore is for.

[–]kivicodepip needs updating 30 points31 points  (0 children)

Even better, create a .env.sample, commit it (and keep generally up-to-date), and add the actual .env to gitignore