mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2024-11-20 10:39:59 +01:00
1bc5e144d3
Flask extensions are loaded in a way that makes them easily reusable by blueprints. In this commit we are also adding `environs` to manage .env and settings: breaking changes! - FLASK_APP=lnbits.app - LNBITS_ALLOWED_USERS needs to be empty now to allow all users (NOT "all")
9 lines
120 B
Python
9 lines
120 B
Python
from .app import create_app
|
|
from .commands import migrate_databases
|
|
|
|
|
|
migrate_databases()
|
|
|
|
app = create_app()
|
|
app.run()
|