lnbits-legend/lnbits/__main__.py

22 lines
539 B
Python
Raw Normal View History

from .app import create_app
2020-09-15 20:54:05 +02:00
from .commands import migrate_databases, transpile_scss, bundle_vendored
from .settings import LNBITS_SITE_TITLE, SERVICE_FEE, DEBUG, LNBITS_DATA_FOLDER, WALLET
2020-09-04 03:39:52 +02:00
migrate_databases()
2020-09-15 20:54:05 +02:00
transpile_scss()
bundle_vendored()
app = create_app()
print(
f"""Starting LNbits with
- site title: {LNBITS_SITE_TITLE}
- debug: {DEBUG}
- data folder: {LNBITS_DATA_FOLDER}
- funding source: {WALLET.__class__.__name__}
- service fee: {SERVICE_FEE}
"""
)
app.run(host=app.config["HOST"], port=app.config["PORT"])