$ superset db upgrade Usage: superset [OPTIONS] COMMAND [ARGS]... Try 'superset --help' for help.
Error: Could not locate a Flask application. Use the 'flask --app' option, 'FLASK_APP' environment variable, or a 'wsgi.py' or 'app.py' file in the current directory.
不设置SECRET_KEY会提示以下错误信息:
1 2 3 4 5 6 7 8 9 10
$ superset db upgrade -------------------------------------------------------------------------------- WARNING -------------------------------------------------------------------------------- A Default SECRET_KEY was detected, please use superset_config.py to override it. Use a strong complex alphanumeric string and use a tool to help you generate a sufficiently random sequence, ex: openssl rand -base64 42 -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- Refusing to start due to insecure SECRET_KEY