Answers for "how to deploy a flask app on heroku"

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
0

dev.to flask heroku

% heroku login
% git init
% heroku git:remote -a codingx-python
% git add.
% git commit -am "First python app"
% git push heroku master
Posted by: Guest on September-10-2021

Python Answers by Framework

Browse Popular Code Answers by Language