Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion commands
Original file line number Diff line number Diff line change
Expand Up @@ -181,14 +181,18 @@ case "$1" in
exit 1
fi
DB_PASSWORD=$(cat "$DOKKU_ROOT/.postgresql/pwd_$3")
# get_postgresql_port expects $APP to be the name of the db so we temporarily change
APP_CACHE=$APP
APP=$3
PORT=$(get_postgresql_port)
APP=$APP_CACHE
# Link database using dokku command
dokku config:set $APP "DATABASE_URL=postgres://root:$DB_PASSWORD@172.17.42.1:$PORT/db"
echo
echo "-----> $APP linked to $DB_IMAGE database"
fi
;;

postgresql:logs)
ID=$(get_postgresql_id)
docker logs $ID | tail -n 100
Expand Down