This is an automated email from the ASF dual-hosted git repository.
dpgaspar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
The following commit(s) were added to refs/heads/master by this push:
new b7a508d updated FLASK_APP values for dockerusage (#8621)
b7a508d is described below
commit b7a508d5a7a690ef56180a1b2e7ec151c6572d52
Author: maxmelnick <[email protected]>
AuthorDate: Thu Nov 21 03:44:17 2019 -0500
updated FLASK_APP values for dockerusage (#8621)
---
contrib/docker/docker-entrypoint.sh | 4 ++--
contrib/docker/docker-init.sh | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/contrib/docker/docker-entrypoint.sh
b/contrib/docker/docker-entrypoint.sh
index 03e4f96..44f08a2 100755
--- a/contrib/docker/docker-entrypoint.sh
+++ b/contrib/docker/docker-entrypoint.sh
@@ -24,7 +24,7 @@ elif [ "$SUPERSET_ENV" = "development" ]; then
# needed by superset runserver
(cd superset/assets/ && npm ci)
(cd superset/assets/ && npm run dev) &
- FLASK_ENV=development FLASK_APP=superset:app flask run -p 8088
--with-threads --reload --debugger --host=0.0.0.0
+ FLASK_ENV=development FLASK_APP="superset.app:create_app()" flask run -p
8088 --with-threads --reload --debugger --host=0.0.0.0
elif [ "$SUPERSET_ENV" = "production" ]; then
celery worker --app=superset.sql_lab:celery_app --pool=gevent -Ofair &
exec gunicorn --bind 0.0.0.0:8088 \
@@ -32,7 +32,7 @@ elif [ "$SUPERSET_ENV" = "production" ]; then
--timeout 60 \
--limit-request-line 0 \
--limit-request-field_size 0 \
- superset:app
+ "superset.app:create_app()"
else
superset --help
fi
diff --git a/contrib/docker/docker-init.sh b/contrib/docker/docker-init.sh
index 2ef5ac4..d83b373 100755
--- a/contrib/docker/docker-init.sh
+++ b/contrib/docker/docker-init.sh
@@ -18,7 +18,7 @@
set -ex
# Create an admin user (you will be prompted to set username, first and last
name before setting a password)
-export FLASK_APP=superset:app
+export FLASK_APP="superset.app:create_app()"
flask fab create-admin
# Initialize the database