Created
November 19, 2018 14:57
-
-
Save cvergne/8911eef523d7547199403bf763cfa131 to your computer and use it in GitHub Desktop.
Symfony .env migration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e # stop on error | |
set -x # print commands | |
# cf. https://symfony.com/blog/improvements-to-the-handling-of-env-files-for-all-symfony-versions | |
mv .env .env.local | |
mv .env.dist .env | |
sed -i '' 's/\.env/\.env\.*/g' .gitignore |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment