My website: https://khoivn.herokuapp.com
First of all, I want to especially thank Mr. Chau from How Kteam community for providing detailed instructions on Youtube about this blog project. Besides, I also refer to the implementation process on the website of the Corey Schafer Youtube channel
Install heroku:
pip install --classic heroku
Login heroku and change directory to deploy-website-heroku:
heroku login
cd deploy-website-heroku
heroku create
Install all packages in local machine:
pip install -r requirements.txt
Create database by Heroku Postgres
heroku addons
heroku addons:create heroku-postgresql:hobby-dev
(With 1 account just have 1 database free on heroku is name hobby-dev)
In my website, I use git of heroku and it is the same with Github.
git init
git add .
git commit -m "message commit"
git push heroku main