Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ddev phpmyadmin doesn't work with non-default ports #19

Closed
rfay opened this issue Jul 17, 2024 · 0 comments
Closed

ddev phpmyadmin doesn't work with non-default ports #19

rfay opened this issue Jul 17, 2024 · 0 comments

Comments

@rfay
Copy link
Member

rfay commented Jul 17, 2024

From slack

If ddev config global --router-https-port=8443 then

DDEV_DEBUG=true ddev phpmyadmin results in FULLURL https://test-phpmyadmin.ddev.site:8443:8037

Note 2 ports on the end.

It looks like we're assuming that DDEV_PRIMARY_URL doesn't have a port on the end.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant