📜  heroku python heroku 端口问题 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:50.047000             🧑  作者: Mango

代码示例1
import os 
port = int(os.environ.get('PORT', 33507))  # add these lines in code
app.run(host=args.host, port=port, debug=True)  

heroku config:add PORT=33507   # run this command once you upadte the code in terminal