Externally Visible Server (#6264)

* Externally Visible Server

Usually, app in docker need to be tested in host

* Update docker-entrypoint.sh
This commit is contained in:
mlboy 2018-11-02 23:21:57 +08:00 committed by Maxime Beauchemin
parent da24b0e0d7
commit 3115eec892
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ set -ex
if [ "$#" -ne 0 ]; then
exec "$@"
elif [ "$SUPERSET_ENV" = "local" ]; then
flask run -p 8080 --with-threads --reload --debugger
flask run -p 8080 --with-threads --reload --debugger --host=0.0.0.0
elif [ "$SUPERSET_ENV" = "production" ]; then
superset runserver -a 0.0.0.0 -w $((2 * $(getconf _NPROCESSORS_ONLN) + 1))
else

View File

@ -21,4 +21,4 @@ cd superset/assets && npm run build && cd ../../
superset worker &
# Start the dev web server
flask run -p 8080 --with-threads --reload --debugger
flask run -p 8080 --with-threads --reload --debugger --host=0.0.0.0