diff --git a/free_one_api/impls/app.py b/free_one_api/impls/app.py index 6b8108a..93f1846 100644 --- a/free_one_api/impls/app.py +++ b/free_one_api/impls/app.py @@ -54,7 +54,7 @@ def run(self): default_config = { "database": { "type": "sqlite", - "path": "free_one_api.db", + "path": "./data/free_one_api.db", }, "channel": { "heartbeat": { @@ -67,7 +67,7 @@ def run(self): "token": "12345678", }, "web": { - "frontend_path": "../web/dist/", + "frontend_path": "./web/dist/", } } diff --git a/main.py b/main.py index 35e8b53..add8f01 100644 --- a/main.py +++ b/main.py @@ -5,13 +5,10 @@ if not os.path.exists('./data'): os.mkdir('./data') -# change dir to ./data -os.chdir('./data') - from free_one_api.impls import app def main(): - application = asyncio.run(app.make_application("./config.yaml")) + application = asyncio.run(app.make_application("./data/config.yaml")) application.run()