configure external url properly in dev/atc
@@ -14,7 +14,6 @@ go install github.com/concourse/atc/cmd/atc
pg_port=${POSTGRES_PORT:-6543}
external_ip="$($ROOT/dev/util/external-ip)"
-echo $external_ip
until createdb -U postgres -p ${pg_port} atc 2>&1 | grep 'already exists' >/dev/null; do
echo creating database...
@@ -27,7 +26,7 @@ cd $ROOT/src/github.com/concourse/atc
atc \
--no-really-i-dont-want-any-auth \
--log-level debug \
- --external-url "http://127.0.0.1:8080" \
+ --external-url "http://${external_ip}:8080" \
--session-signing-key $KEYSDIR/web/session_signing_key \
--postgres-data-source "user=postgres dbname=atc port=${pg_port} sslmode=disable" \
"$@"
