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
|
||||
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"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue