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