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

fix: make phpmyadmin command work with nonstandard ports, fixes #19 #20

Merged
merged 3 commits into from
Jul 17, 2024

Conversation

rfay
Copy link
Member

@rfay rfay commented Jul 17, 2024

The Issue

How This PR Solves The Issue

Strip the nonstandard port before adding the phpmyadmin port

Manual Testing Instructions

Test with

ddev get https://github.com/rfay/ddev-phpmyadmin/tarball/20240717_fix_phpmyadmin_command

Automated Testing Overview

Related Issue Link(s)

Release/Deployment Notes

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we don't even need to have a full URL here.
It's enough to open a port with ddev launch :$DDEV_PHPMYADMIN_PORT

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better!

@rfay rfay requested a review from stasadev July 17, 2024 21:28
Copy link
Member

@stasadev stasadev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@rfay rfay merged commit 5ef107c into ddev:main Jul 17, 2024
2 checks passed
@rfay rfay deleted the 20240717_fix_phpmyadmin_command branch July 17, 2024 21:53
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

Successfully merging this pull request may close these issues.

2 participants