mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
Root is element is an array not a hash
This commit is contained in:
@@ -5,7 +5,7 @@ if [[ ! -f "$HOME/$APP/PORT" ]]; then
|
||||
# First deploy
|
||||
ID=$(docker run -d -p 5000 -e PORT=5000 $CONTAINER /bin/bash -c "/start web")
|
||||
echo $ID > "$HOME/$APP/CONTAINER"
|
||||
PORT=$(docker inspect $ID | ruby -e 'require"json";puts JSON.parse(STDIN.read)["NetworkSettings"]["PortMapping"]["5000"]')
|
||||
PORT=$(docker inspect $ID | ruby -e 'require"json";puts JSON.parse(STDIN.read)[0]["NetworkSettings"]["PortMapping"]["5000"]')
|
||||
echo $PORT > "$HOME/$APP/PORT"
|
||||
if [[ -f "$HOME/DOMAIN" ]]; then
|
||||
HOSTNAME="${APP/\//-}.$(< "$HOME/DOMAIN")"
|
||||
|
||||
Reference in New Issue
Block a user