mirror of
https://github.com/apache/superset.git
synced 2024-09-13 00:59:37 -04:00
70327ca42c
If you follow the documentation, the current docker instructions return an error when trying to connect via localhost. This seems to be due to the fact that it's running on port 8080, but forwarding port 8088. I suppose the cleaner solution is to do this, as opposed to changing both the compose file and the instructions... Hope this helps!!
25 lines
599 B
Bash
25 lines
599 B
Bash
#!/usr/bin/env bash
|
|
|
|
set -ex
|
|
|
|
# Create an admin user (you will be prompted to set username, first and last name before setting a password)
|
|
fabmanager create-admin --app superset
|
|
|
|
# Initialize the database
|
|
superset db upgrade
|
|
|
|
# Load some data to play with
|
|
superset load_examples
|
|
|
|
# Create default roles and permissions
|
|
superset init
|
|
|
|
# Need to run `npm run build` when enter contains for first time
|
|
cd superset/assets && npm run build && cd ../../
|
|
|
|
# Start superset worker for SQL Lab
|
|
superset worker &
|
|
|
|
# Start the dev web server
|
|
flask run -p 8088 --with-threads --reload --debugger --host=0.0.0.0
|