Deploying to Heroku
Posted on 15 Oct, 2019
List of steps to follow when you are deployihg a new repository/project (Python).
heroku login
touch Procfile
Create Procfile for deployment. For a Django Web-App the contents of Procfile would be.
touch runtime.txt
Specify your Python version here. For example
heroku create herokuAPPName
Before running this, Make sure to addappname.herokuapp.com
in ALLOWED_HOSTS and yourrequirements.txt
is updated.
List of commands to run when you are deployihg a cloned repository.
heroku login
Login with your e-mail and password.heroku git:remote -a <app-name>
Whereapp-name
is the name of app on heroku.git push heroku master
Push new changes to heroku.
Last updated