change defaults to localhost:80
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
Robert Kaussow 2020-06-01 21:54:09 +02:00
parent 8f7148e4f5
commit 8df3755be3
4 changed files with 6 additions and 6 deletions

View File

@ -1 +1,3 @@
* initial release
* ENHANCEMENT
* always use localhost as server address
* use port 80 as default

View File

@ -11,8 +11,7 @@ ARG BUILD_VERSION=latest
ENV BLC_VERSION="${BUILD_VERSION:-latest}" \
LINK_VALIDATOR_BASE_DIR=/drone/src \
LINK_VALIDATOR_SERVER_ADDRESS=127.0.0.1 \
LINK_VALIDATOR_SERVER_PORT=8000 \
LINK_VALIDATOR_SERVER_PORT=80 \
FORCE_COLOR=true \
NPM_CONFIG_LOGLEVEL=error

View File

@ -20,7 +20,6 @@ docker run -v $(pwd)/public:/drone/src link-validator -ro
```Shell
LINK_VALIDATOR_BASE_DIR=/drone/src
LINK_VALIDATOR_SERVER_ADDRESS=127.0.0.1
LINK_VALIDATOR_SERVER_PORT=8000
```

View File

@ -1,5 +1,5 @@
#!/usr/bin/env sh
set -eo pipefail
/usr/local/bin/http-server "$LINK_VALIDATOR_BASE_DIR" -p "$LINK_VALIDATOR_SERVER_PORT" -a "$LINK_VALIDATOR_SERVER_ADDRESS" -s &
exec /usr/local/bin/broken-link-checker "$@" http://"$LINK_VALIDATOR_SERVER_ADDRESS":"$LINK_VALIDATOR_SERVER_PORT"
/usr/local/bin/http-server "$LINK_VALIDATOR_BASE_DIR" -p "$LINK_VALIDATOR_SERVER_PORT" -a 127.0.0.1 -s &
exec /usr/local/bin/broken-link-checker "$@" http://localhost:"$LINK_VALIDATOR_SERVER_PORT"