Skip to content

Commit

Permalink
updated FLASK_APP values for dockerusage (apache#8621)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmelnick authored and dpgaspar committed Nov 21, 2019
1 parent 6e470fc commit b7a508d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions contrib/docker/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ 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 \
--workers $((2 * $(getconf _NPROCESSORS_ONLN) + 1)) \
--timeout 60 \
--limit-request-line 0 \
--limit-request-field_size 0 \
superset:app
"superset.app:create_app()"
else
superset --help
fi
2 changes: 1 addition & 1 deletion contrib/docker/docker-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b7a508d

Please sign in to comment.