lnbits-legend/lnbits/__main__.py

31 lines
670 B
Python
Raw Normal View History

import asyncio
import uvloop
from starlette.requests import Request
2020-09-03 22:39:52 -03:00
from .commands import bundle_vendored, migrate_databases, transpile_scss
from .settings import (DEBUG, LNBITS_COMMIT, LNBITS_DATA_FOLDER,
LNBITS_SITE_TITLE, PORT, SERVICE_FEE, WALLET)
uvloop.install()
asyncio.create_task(migrate_databases())
2020-09-15 15:54:05 -03:00
transpile_scss()
bundle_vendored()
from .app import create_app
app = create_app()
print(
f"""Starting LNbits with
2020-10-06 17:42:33 -03:00
- git version: {LNBITS_COMMIT}
- site title: {LNBITS_SITE_TITLE}
- debug: {DEBUG}
- data folder: {LNBITS_DATA_FOLDER}
- funding source: {WALLET.__class__.__name__}
- service fee: {SERVICE_FEE}
"""
)