We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64f8c81 commit d9a1e2dCopy full SHA for d9a1e2d
commands
@@ -190,8 +190,13 @@ case "$1" in
190
exit 1
191
fi
192
DB_PASSWORD=$(cat "$DOKKU_ROOT/.postgresql/pwd_$3")
193
+ # get_postgresql_port expects $APP to be the name of the db so we temporarily change
194
+ APP_CACHE=$APP
195
+ APP=$3
196
+ PORT=$(get_postgresql_port)
197
IP=$(get_postgresql_ip)
198
PORT=$(get_postgresql_port)
199
+ APP=$APP_CACHE
200
# Link database using dokku command
201
dokku config:set $APP "DATABASE_URL=postgres://root:$DB_PASSWORD@$IP:$PORT/db"
202
echo
0 commit comments