treewide: use StaticFiles() rather than rel path

This commit is not exhaustive, and it is a trend in this codebase to not
use StaticFiles() and instead use relative paths. This means the code
cannot run anywhere other than the source code directory, as it will not
find the files it is looking for
This commit is contained in:
matthewcroughan
2022-07-08 11:06:26 +01:00
parent 49bd5ad26b
commit 36e92765d3
11 changed files with 21 additions and 23 deletions
+1 -3
View File
@@ -5,7 +5,7 @@ from starlette.requests import Request
from loguru import logger
from .commands import bundle_vendored, migrate_databases, transpile_scss
from .commands import migrate_databases
from .settings import (
DEBUG,
LNBITS_COMMIT,
@@ -21,8 +21,6 @@ from .settings import (
uvloop.install()
asyncio.create_task(migrate_databases())
transpile_scss()
bundle_vendored()
from .app import create_app