added adminer

This commit is contained in:
Pedro Cabral
2026-04-20 17:22:28 +02:00
parent fa390e76cd
commit 74e27974e2
4 changed files with 167 additions and 0 deletions

15
.ddev/commands/host/adminer Executable file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env bash
## #ddev-generated: If you want to edit and own this file, remove this line.
## Description: Launch a browser with Adminer
## Usage: adminer
## Example: "ddev adminer"
DDEV_ADMINER_PORT=9100
DDEV_ADMINER_HTTPS_PORT=9101
if [ ${DDEV_PRIMARY_URL%://*} = "http" ] || [ -n "${GITPOD_WORKSPACE_ID:-}" ] || [ "${CODESPACES:-}" = "true" ]; then
ddev launch :$DDEV_ADMINER_PORT
else
ddev launch :$DDEV_ADMINER_HTTPS_PORT
fi