Last active
September 11, 2023 21:44
-
-
Save tnylea/f2e775897c73230c6206eb0825701085 to your computer and use it in GitHub Desktop.
SED command to automatically add absolute path to sqlite file in the .env
This file contains hidden or 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
sed -i '' -e "s|^DB_DATABASE=.*|DB_DATABASE=$PWD/database/database.sqlite|" -e 's/^DB_CONNECTION=mysql/DB_CONNECTION=sqlite/' .env |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment