reduce main
This commit is contained in:
parent
6a2c741478
commit
b9e78506ba
1 changed files with 0 additions and 36 deletions
|
|
@ -1,38 +1,2 @@
|
||||||
import asyncio
|
|
||||||
|
|
||||||
import uvloop
|
|
||||||
from loguru import logger
|
|
||||||
from starlette.requests import Request
|
|
||||||
|
|
||||||
from .commands import migrate_databases
|
|
||||||
from .settings import (
|
|
||||||
DEBUG,
|
|
||||||
HOST,
|
|
||||||
LNBITS_COMMIT,
|
|
||||||
LNBITS_DATA_FOLDER,
|
|
||||||
LNBITS_DATABASE_URL,
|
|
||||||
LNBITS_SITE_TITLE,
|
|
||||||
PORT,
|
|
||||||
WALLET,
|
|
||||||
)
|
|
||||||
|
|
||||||
uvloop.install()
|
|
||||||
|
|
||||||
asyncio.create_task(migrate_databases())
|
|
||||||
|
|
||||||
from .app import create_app
|
from .app import create_app
|
||||||
|
|
||||||
app = create_app()
|
app = create_app()
|
||||||
|
|
||||||
logger.info("Starting LNbits")
|
|
||||||
logger.info(f"Host: {HOST}")
|
|
||||||
logger.info(f"Port: {PORT}")
|
|
||||||
logger.info(f"Debug: {DEBUG}")
|
|
||||||
logger.info(f"Site title: {LNBITS_SITE_TITLE}")
|
|
||||||
logger.info(f"Funding source: {WALLET.__class__.__name__}")
|
|
||||||
logger.info(
|
|
||||||
f"Database: {'PostgreSQL' if LNBITS_DATABASE_URL and LNBITS_DATABASE_URL.startswith('postgres://') else 'CockroachDB' if LNBITS_DATABASE_URL and LNBITS_DATABASE_URL.startswith('cockroachdb://') else 'SQLite'}"
|
|
||||||
)
|
|
||||||
logger.info(f"Data folder: {LNBITS_DATA_FOLDER}")
|
|
||||||
logger.info(f"Git version: {LNBITS_COMMIT}")
|
|
||||||
# logger.info(f"Service fee: {SERVICE_FEE}")
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue