debug mode
This commit is contained in:
parent
74863986bf
commit
c8e029888a
1 changed files with 4 additions and 2 deletions
|
|
@ -194,13 +194,15 @@
|
||||||
if cfg.phx.database.passwordFile != null
|
if cfg.phx.database.passwordFile != null
|
||||||
then ''
|
then ''
|
||||||
export DB_PASSWORD=$(cat ${cfg.phx.database.passwordFile})
|
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 ''
|
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
|
# Run migrations
|
||||||
${cfg.phx.package}/bin/${release_name} eval "ZoeysComputer.Release.migrate"
|
${cfg.phx.package}/bin/${release_name} eval "ZoeysComputer.Release.migrate"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue