Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: create-admin command in Makefile #17471

Merged
merged 2 commits into from
Nov 18, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 [email protected] \
--password admin
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please change the password to "general"
or change all the test fixtures that add an admin user, the password to 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