Skip to content

Commit

Permalink
renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
Jave01 committed Apr 5, 2023
1 parent 96d918a commit 499a1f4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from website import create_app
import json
import os

app = create_app()


if __name__ == "__main__":
path = os.path.dirname(os.path.abspath(__file__))
fpath = os.path.join(path, 'config.json')

with open(fpath, 'r') as f:
run = json.load(f)['run']

app.run(debug=run['debug'], host=run['host'], port=run['port'])

0 comments on commit 499a1f4

Please sign in to comment.