Skip to content

Commit

Permalink
feat: change file target path
Browse files Browse the repository at this point in the history
  • Loading branch information
RockChinQ committed Oct 3, 2023
1 parent 2d45d02 commit 068dece
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions free_one_api/impls/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -67,7 +67,7 @@ def run(self):
"token": "12345678",
},
"web": {
"frontend_path": "../web/dist/",
"frontend_path": "./web/dist/",
}
}

Expand Down
5 changes: 1 addition & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 068dece

Please sign in to comment.