debug mode

This commit is contained in:
zack 2024-10-21 21:08:28 -04:00
parent 74863986bf
commit c8e029888a
No known key found for this signature in database
GPG key ID: 5F873416BCF59F35

View file

@ -194,13 +194,15 @@
if cfg.phx.database.passwordFile != null
then ''
export DB_PASSWORD=$(cat ${cfg.phx.database.passwordFile})
export DATABASE_URL="postgresql://${cfg.phx.database.user}:$DB_PASSWORD@${cfg.phx.database.host}/${cfg.phx.database.name}"
export DATABASE_URL="ecto://${cfg.phx.database.user}:$DB_PASSWORD@${cfg.phx.database.host}/${cfg.phx.database.name}"
''
else ''
export DATABASE_URL="postgresql://${cfg.phx.database.user}@${cfg.phx.database.host}/${cfg.phx.database.name}"
export DATABASE_URL="ecto://${cfg.phx.database.user}@${cfg.phx.database.host}/${cfg.phx.database.name}"
''
}
echo $DATABASE_URL
# Run migrations
${cfg.phx.package}/bin/${release_name} eval "ZoeysComputer.Release.migrate"