Skip to content

Commit

Permalink
fix: create-admin command in Makefile (#17471)
Browse files Browse the repository at this point in the history
* update make file

* Update Makefile
  • Loading branch information
hughhhh committed Nov 18, 2021
1 parent 683d1da commit 7b68002
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ superset:
pip install -e .

# 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
superset db upgrade
Expand Down Expand Up @@ -67,7 +72,7 @@ venv:
. venv/bin/activate

activate:
source venv/bin/activate
. venv/bin/activate

pre-commit:
# setup pre commit dependencies
Expand Down Expand Up @@ -98,3 +103,6 @@ build-cypress:
open-cypress:
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

admin-user:
superset fab create-admin

0 comments on commit 7b68002

Please sign in to comment.