fix: create-admin command in Makefile (#17471)

* update make file

* Update Makefile
This commit is contained in:
Hugh A. Miles II 2021-11-18 15:52:30 -05:00 committed by GitHub
parent 683d1dab13
commit 7b68002eb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 2 deletions

View File

@ -30,7 +30,12 @@ superset:
pip install -e . pip install -e .
# Create an admin user in your metadata database # Create an admin user in your metadata database
superset fab create-admin superset fab create-admin \
--username admin \
--firstname Admin \
--lastname Strator \
--email admin@superset.io \
--password admin
# Initialize the database # Initialize the database
superset db upgrade superset db upgrade
@ -67,7 +72,7 @@ venv:
. venv/bin/activate . venv/bin/activate
activate: activate:
source venv/bin/activate . venv/bin/activate
pre-commit: pre-commit:
# setup pre commit dependencies # setup pre commit dependencies
@ -98,3 +103,6 @@ build-cypress:
open-cypress: open-cypress:
if ! [ $(port) ]; then cd superset-frontend/cypress-base; CYPRESS_BASE_URL=http://localhost:9000 npm run cypress open; fi if ! [ $(port) ]; then cd superset-frontend/cypress-base; CYPRESS_BASE_URL=http://localhost:9000 npm run cypress open; fi
cd superset-frontend/cypress-base; CYPRESS_BASE_URL=http://localhost:$(port) npm run cypress open cd superset-frontend/cypress-base; CYPRESS_BASE_URL=http://localhost:$(port) npm run cypress open
admin-user:
superset fab create-admin