Deploying to Heroku
January 18, 2025 ยท View on GitHub
List of steps to follow when you are deployihg a new repository/project (Python).
heroku logintouch ProcfileCreate Procfile for deployment. For a Django Web-App the contents of Procfile would be.
gunicorn djangoherokuapp.wsgi --log-file -
touch runtime.txtSpecify your Python version here. For example
python-3.6.8
heroku create herokuAPPNameBefore running this, Make sure to addappname.herokuapp.comin ALLOWED_HOSTS and yourrequirements.txtis updated.
List of commands to run when you are deployihg a cloned repository.
heroku loginLogin with your e-mail and password.heroku git:remote -a <app-name>Whereapp-nameis the name of app on heroku.git push heroku masterPush new changes to heroku.