IEEE.org     |     IEEE Xplore Digital Library     |     IEEE Standards     |     IEEE Spectrum     |     More Sites

Commit 7f49c5ba authored by Suhas CV's avatar Suhas CV
Browse files

wsgi production latest

parent 9e40facf
Pipeline #641 failed with stage
in 34 seconds
......@@ -3,3 +3,5 @@ runtime.txt
Cpanfile
Aptfile
__pycache__
[label .gitignore]
*.pyc
\ No newline at end of file
from main import app
import os
from waitress import serve
if __name__=="__main__":
port = int(os.environ.get('PORT', 5000))
app.run(host='0.0.0.0',port=port)
\ No newline at end of file
serve(app, host="0.0.0.0",port=port)
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment