How to Deploy Application on Heroku

How to deploy application on heroku

This article introduces how to deploy web applications onto heroku.

vue2+Flask网站,轻松部署到免费主机Heroku
Getting Started on Heroku with Python

how to check log

heroku logs --tail

define starter

the command to start the web application is contained in file: Procfile, format like below:
web: gunicorn settingstarted.wsgi --log-file -

run on local

  1. Collect static resources: python manage.py collectstatic
  2. Run by command: heroku local web

submit local changes

1
2
3
heroku local
git push heroku master
heroku open
0%