DEV Community

ownership903
ownership903

Posted on

Heroku Deploy

heroku login
git init
heroku git:remote -a appname
git add .
git commit -am "make it better"
git push heroku master

rm -rf .git

! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://git.heroku.com/appname.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

git push heroku HEAD:master --force

Precautions
https://velog.io/@han0707/django-heroku-error

Top comments (0)