Update 'Superset minimal setup'
parent
ece36840e0
commit
d4daa87286
22
Superset-minimal-setup.md
Normal file
22
Superset-minimal-setup.md
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
# How to create a minimal Superset setup
|
||||||
|
|
||||||
|
Crate a configuration file
|
||||||
|
|
||||||
|
```
|
||||||
|
MAPBOX_API_KEY = 'pk.eyJ1IjoidGhhbmh0YyIsImEiOiJjangxZmN6bWwwOTc4M3lxcHRsYW1tOW81In0.G-nEJxDpJlm3yoja2WZsxw'
|
||||||
|
SECRET_KEY = "RANDOM_STRING"
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
python3.8 -m venv env-superset
|
||||||
|
source env-superset/bin/activate
|
||||||
|
python -m pip install --upgrade pip setuptools wheel psycopg2-binary gunicorn
|
||||||
|
python -m pip install flask==2.0.3 werkzeug==2.0.3 jinja2==3.0.1 "wtforms<3.0" apache-superset==2.0.0 pillow
|
||||||
|
FLASK_APP=superset superset db upgrade
|
||||||
|
export FLASK_APP=superset
|
||||||
|
export PYTHONPATH=.
|
||||||
|
superset fab create-admin
|
||||||
|
superset init
|
||||||
|
PYTHONPATH=. gunicorn -b 0.0.0.0:8088 "superset.app:create_app()"
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in a new issue