I'm using a python program on heroku using bottle framework. To run it locally, i used
run(host='localhost', port=8080)
to run it online what should i change it to.
port = int(os.environ.get("PORT", 5000)) app.run(host='0.0.0.0', port=port)
Source: Heroku/Python Quickstart
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.