Answers for "python update herokuapp"

1

heroku change python version

In runtime.txt add required version
python-3.9.5

like this 
https://github.com/heroku/python-getting-started/blob/main/runtime.txt


supported vestions are 
python-3.9.5 
python-3.8.10 
python-3.7.10 
python-3.6.13
Posted by: Guest on June-20-2021
0

heroku python heroku port issue

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
Posted by: Guest on December-08-2020

Python Answers by Framework

Browse Popular Code Answers by Language