Compare commits

...

3 Commits

Author SHA1 Message Date
Ferdinand Thiessen ab093c04bd fix(cli): Defaul logging level should be WARNING
continuous-integration/woodpecker the build was successful Details
2021-12-18 02:12:19 +01:00
Ferdinand Thiessen ee839ce6a3 fix(auth_plain): Fix post_install hook 2021-12-18 02:12:00 +01:00
Ferdinand Thiessen f507cd483d fix(docs): Fix script name in documentation 2021-12-18 02:00:46 +01:00
3 changed files with 6 additions and 6 deletions

View File

@ -33,14 +33,14 @@ def verbosity(ctx, param, value):
"""Toggle verbosity between WARNING <-> DEBUG""" """Toggle verbosity between WARNING <-> DEBUG"""
if not value or ctx.resilient_parsing: if not value or ctx.resilient_parsing:
return return
configure_logger(cli=40 - max(0, min(value * 10, 30))) configure_logger(cli=30 - max(0, min(value * 10, 20)))
@click.group( @click.group(
cls=FlaskGroup, cls=FlaskGroup,
add_version_option=False, add_version_option=False,
add_default_commands=False, add_default_commands=False,
create_app=lambda: create_app(cli=True), create_app=lambda: create_app(cli=30),
) )
@click.option( @click.option(
"--version", "--version",

View File

@ -17,7 +17,7 @@ class AuthPlain(AuthPlugin):
def install(self): def install(self):
plugins_installed(self.post_install) plugins_installed(self.post_install)
def post_install(self): def post_install(self, **kwargs):
if User.query.filter(User.deleted == False).count() == 0: if User.query.filter(User.deleted == False).count() == 0:
logger.info("Installing admin user") logger.info("Installing admin user")
role = Role.query.filter(Role.name == "Superuser").first() role = Role.query.filter(Role.name == "Superuser").first()

View File

@ -67,13 +67,13 @@ If not you need to create user and database manually do (or similar on Windows):
Then you can install the database tables and initial entries: Then you can install the database tables and initial entries:
run_flaschengeist install $ flaschengeist install
### Run ### Run
run_flaschengeist run $ flaschengeist run
or with debug messages: or with debug messages:
run_flaschengeist run --debug $ flaschengeist run --debug
This will run the backend on http://localhost:5000 This will run the backend on http://localhost:5000