Compare commits
No commits in common. "ab093c04bd547bd48754b8496c2732f90029dbc0" and "bd371dfcf27d00e79e0a1cd0002469817d15be4b" have entirely different histories.
ab093c04bd
...
bd371dfcf2
|
@ -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=30 - max(0, min(value * 10, 20)))
|
configure_logger(cli=40 - max(0, min(value * 10, 30)))
|
||||||
|
|
||||||
|
|
||||||
@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=30),
|
create_app=lambda: create_app(cli=True),
|
||||||
)
|
)
|
||||||
@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, **kwargs):
|
def post_install(self):
|
||||||
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:
|
||||||
|
|
||||||
$ flaschengeist install
|
run_flaschengeist install
|
||||||
|
|
||||||
### Run
|
### Run
|
||||||
$ flaschengeist run
|
run_flaschengeist run
|
||||||
or with debug messages:
|
or with debug messages:
|
||||||
|
|
||||||
$ flaschengeist run --debug
|
run_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