Skip to content

Commit

Permalink
fix: You must pass the application as
Browse files Browse the repository at this point in the history
You must pass the application as an import string to enable 'reload
  • Loading branch information
jackeyGao authored Aug 3, 2021
1 parent 41e8533 commit 7b9545a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions server.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import os
import json
import responder
import logging
from datetime import datetime
from db import Entry, db

Expand All @@ -16,7 +14,7 @@
def __initalize_runserver__():
db.connect()
db.create_tables([Entry, ])
api.run(address="0.0.0.0", debug=env=='DEBUG')
api.run(address="0.0.0.0", debug=env=='DEBUG', workers=1)


@api.route('/')
Expand Down

0 comments on commit 7b9545a

Please sign in to comment.