heroku login
heroku create
git add .
git commit -m "test"
git push heroku master
heroku ps:scale web=1
heroku open
Open cmd in the directory of your project. Then enter the following things
git checkout branch-to-deploy
heroku git:remote -a app-name
git push heroku branch-to-deploy:main
heroku login
heroku create
git push heroku main
//...done
I assume you know how to use git.
I also assume you've ran the heroku create command for the app.
First commit the app if you haven't, then run this command:
git push heroku master
If there's an error, then try to fix it.
After that access the website by running this command:
heroku open
And run this command if you encounter an error with the website:
heroku logs --tail