Skip to content

Commit

Permalink
Update main.py : Applied Waitress ServeR
Browse files Browse the repository at this point in the history
  • Loading branch information
yymin1022 committed Aug 20, 2022
1 parent 519cdbd commit c60dfca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from flask import Flask, jsonify, redirect, request
from waitress import serve

import message

Expand Down Expand Up @@ -45,4 +46,4 @@ def getMessage():
return jsonify(replyData)

if __name__ == "__main__":
flaskApp.run(host="0.0.0.0", port=80)
serve(flaskApp, host="0.0.0.0", port=80)

0 comments on commit c60dfca

Please sign in to comment.