mirror of
https://github.com/ziirish/burp-ui.git
synced 2026-05-15 22:01:26 -06:00
improve CLI startup time
Avoid provisioning some "web-only" components such as cache, db, etc. Modules might be lazy-loaded by subcommands at will.
This commit is contained in:
parent
8dcc431a91
commit
53b404a983
1 changed files with 2 additions and 0 deletions
|
|
@ -168,6 +168,8 @@ def create_app(conf=None, verbose=0, logfile=None, **kwargs):
|
|||
logger.info('Using configuration: {}'.format(app.config['CFG']))
|
||||
|
||||
app.setup(app.config['CFG'], unittest, cli)
|
||||
if cli:
|
||||
return app
|
||||
|
||||
if debug:
|
||||
app.config.setdefault('TEMPLATES_AUTO_RELOAD', True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue