Compare commits
3 Commits
bd371dfcf2
...
ab093c04bd
Author | SHA1 | Date |
---|---|---|
Ferdinand Thiessen | ab093c04bd | |
Ferdinand Thiessen | ee839ce6a3 | |
Ferdinand Thiessen | f507cd483d |
|
@ -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",
|
||||||
|
|
|
@ -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()
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue