]> Raphaël G. Git Repositories - airlibre/commitdiff
Remove DATABASE_URL from env replacement
authorRaphaël Gertz <git@rapsys.eu>
Wed, 27 Nov 2019 09:41:19 +0000 (10:41 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Wed, 27 Nov 2019 09:41:19 +0000 (10:41 +0100)
run

diff --git a/run b/run
index d123165db90ad54b229273a35e2070ce3f5e82e3..b254d2ebdd9ff344004a145f25c14bb06f9963f0 100755 (executable)
--- a/run
+++ b/run
@@ -2,7 +2,6 @@
 
 export APP_ENV='dev'
 export APP_SECRET=`cat /dev/urandom | tr -dc 'A-Za-z0-9+,.:;@_-' | head -c 64`
-export DATABASE_URL='mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7'
 export MAILER_DSN='smtp://localhost'
 
 set -x
@@ -65,7 +64,7 @@ if [ "$full" = 'Yes' -o "$full" = 'YES' -o "$full" = 'yes' ]; then
        sudo -u apache composer auto-scripts
 
        # Fix env file
-       perl -ne 'my %e=(APP_ENV=>"'$APP_ENV'",APP_SECRET=>"'${APP_SECRET/@/\\@}'",DATABASE_URL=>"'${DATABASE_URL/@/\\@}'",MAILER_DSN=>"'$MAILER_DSN'");my $p=join("|",keys %e);if(/^[#\s]*($p)=/){$_=$1."=\"".$e{$1}."\"\n";};print $_;' -i.orig .env
+       perl -ne 'my %e=(APP_ENV=>"'$APP_ENV'",APP_SECRET=>"'${APP_SECRET/@/\\@}'",MAILER_DSN=>"'$MAILER_DSN'");my $p=join("|",keys %e);if(/^[#\s]*($p)=/){$_=$1."=\"".$e{$1}."\"\n";};print $_;' -i.orig .env
 
        # Dump the env
        sudo -u apache composer symfony:dump-env $APP_ENV