Comment on Backup compose and env files
grimer@lemmy.world 6 days agoThat is an option I’ve been thinking about but I’ve never used it, I’m not a dev. Maybe I’ll look at it more seriously since it does sound like what would work best, I’d really apprecieate the versioning. Thanks!
shadybraden@programming.dev 6 days ago
Definitely worth a shot.
One thing I do to prevent stuff from getting into a public git repo is:
.gitignore
then add the line.env
to it. Then git will ignore any file named.env
sudo nano
) by runningsudo chmod 600 .env && sudo chown root:root .env