Skip to content

Commit

Permalink
fix: make phpmyadmin command work with nonstandard ports
Browse files Browse the repository at this point in the history
  • Loading branch information
rfay committed Jul 17, 2024
1 parent fd1b2b7 commit 1f75b76
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions commands/host/phpmyadmin
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

DDEV_PHPMYADMIN_PORT=8036
DDEV_PHPMYADMIN_HTTPS_PORT=8037

BASE_URL=${DDEV_PRIMARY_URL%:*}
if [ ${DDEV_PRIMARY_URL%://*} = "http" ] || [ -n "${GITPOD_WORKSPACE_ID:-}" ] || [ "${CODESPACES:-}" = "true" ]; then
ddev launch $DDEV_PRIMARY_URL:$DDEV_PHPMYADMIN_PORT
ddev launch ${BASE_URL}:$DDEV_PHPMYADMIN_PORT
else
ddev launch $DDEV_PRIMARY_URL:$DDEV_PHPMYADMIN_HTTPS_PORT
ddev launch ${BASE_URL}:$DDEV_PHPMYADMIN_HTTPS_PORT
fi

0 comments on commit 1f75b76

Please sign in to comment.