1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-01-30 22:08:02 +00:00
_/redis-commander/entrypoint.sh
Kohei Watanabe 30663abe62 Add 'redis-commander/' from commit '497cb166813972e4e2303e50fe75726b43c6494a'
git-subtree-dir: redis-commander
git-subtree-mainline: bb126f221e
git-subtree-split: 497cb16681
2020-07-21 00:42:12 +09:00

8 lines
373 B
Bash
Executable file

#!/bin/sh
set -e
export PORT=${PORT:-8080}
REDIS_HOST=`node -p "new URL('${FLY_REDIS_CACHE_URL}').hostname"`
REDIS_PORT=`node -p "new URL('${FLY_REDIS_CACHE_URL}').port"`
REDIS_PASSWORD=`node -p "new URL('${FLY_REDIS_CACHE_URL}').password"`
export REDIS_HOST=${REDIS_HOST:-localhost} REDIS_PORT=${REDIS_PORT:-6379} REDIS_PASSWORD
/redis-commander/docker/entrypoint.sh "$@"