测试heroku服务器部署

This commit is contained in:
MarkusJoe
2022-02-10 13:15:21 +08:00
parent f9cc23822e
commit 0752eef3b3
1 file changed
+1 -1
+1 -1
View File
@@ -92,7 +92,7 @@ def index():
if __name__ == '__main__':
print('服务器已在 http://127.0.0.1:5000 运行')
app.run(host='0.0.0.0', port=5000)
app.run()
# try:
# server = pywsgi.WSGIServer(('0.0.0.0', 5000), app)
# server.serve_forever()