Skip to content

Commit

Permalink
Merge pull request #199 from HubSpot/local_dev
Browse files Browse the repository at this point in the history
fix start script
  • Loading branch information
ssalinas authored Nov 30, 2016
2 parents 934635d + 5ff625f commit 17c148d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions BaragonService/src/main/docker/start.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/bin/bash

if [ ${DOCKER_HOST} ]; then
HOST_AND_PORT=`echo $DOCKER_HOST | awk -F/ '{print $3}'`
BARAGON_HOSTNAME="${BARAGON_HOSTNAME:=HOST_AND_PORT%:*}"
HOST_AND_PORT=`echo $DOCKER_HOST | awk -F/ '{print $3}'`
DEFAULT_HOSTNAME="${HOST_AND_PORT%:*}"
BARAGON_HOSTNAME="${BARAGON_HOSTNAME:=$DEFAULT_HOSTNAME}"
fi

DEFAULT_URI_BASE="http://${BARAGON_HOSTNAME:=localhost}:${BARAGON_PORT:=8080}${BARAGON_UI_BASE:=/baragon/v2}"
Expand Down

0 comments on commit 17c148d

Please sign in to comment.