File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,7 +21,4 @@ You can run phpMyAdmin easily with the command after installing this add-on:
2121ddev phpmyadmin
2222```
2323
24- > [ !TIP]
25- > For Gitpod: The ` ddev phpmyadmin ` command can open a blank page in preview mode, open the link in a new browser tab/window to make it work.
26-
2724** Contributed and maintained by [ @rfay ] ( https://github.com/rfay ) **
Original file line number Diff line number Diff line change 88DDEV_PHPMYADMIN_PORT=8036
99DDEV_PHPMYADMIN_HTTPS_PORT=8037
1010if [ ${DDEV_PRIMARY_URL%://* } = " http" ] || [ -n " ${GITPOD_WORKSPACE_ID:- } " ] || [ " ${CODESPACES:- } " = " true" ]; then
11- ddev launch :$DDEV_PHPMYADMIN_PORT
11+ # Gitpod: "gp preview" opens a blank page for PhpMyAdmin, use "xdg-open" instead
12+ if [ " ${OSTYPE:- } " = " linux-gnu" ] && [ -n " ${GITPOD_WORKSPACE_ID:- } " ] && [ -z " ${DDEV_DEBUG:- } " ]; then
13+ xdg-open " $( DDEV_DEBUG=true ddev launch :$DDEV_PHPMYADMIN_PORT | grep " FULLURL" | awk ' {print $2}' ) "
14+ else
15+ ddev launch :$DDEV_PHPMYADMIN_PORT
16+ fi
1217else
1318 ddev launch :$DDEV_PHPMYADMIN_HTTPS_PORT
1419fi
You can’t perform that action at this time.
0 commit comments