Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
 
PREVIOUS NEXT
Tagged: #heroku #python #heroku #port #issue
ADD COMMENT
Topic
Name
3+2 =