Files
kazi/.ddev/commands/host/adminer
Pedro Cabral 74e27974e2 added adminer
2026-04-20 17:22:28 +02:00

16 lines
447 B
Bash
Executable File

#!/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