# 12.22 Deployment with Heroku

**URL:** <https://forum.codewithmosh.com/t/12-22-deployment-with-heroku/8608>\
**Category:** Python\
**Created:** [November 19, 2021, 1:10am UTC](https://forum.codewithmosh.com/t/12-22-deployment-with-heroku/8608 "2021-11-19T01:10:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luifrancgom](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/luifrancgom/32/753_2.png) [@luifrancgom](https://forum.codewithmosh.com/u/luifrancgom)\
**Post date:** [November 19, 2021, 1:10am UTC](https://forum.codewithmosh.com/t/12-22-deployment-with-heroku/8608/1 "2021-11-19T01:10:08Z")

</div>

I am finishing chapter 12 from the Complete Python Mastery.

When use the command “git push heroku master” I get the following error:

“Push rejected to desolate-retreat-17705.”

I already have installed git and heroku:

- git version 2.33.1
- heroku/7.59.1 linux-x64 node-v12.21.0

Also I have installed gunicorn 20.1.0, whitenoise 5.3.0, created the Procfile with the content web: gunicorn vidly.wsgi an follow all the steps in 12.21 Getting Ready to Deploy

I reallly don’t know why the push is rejected

 ![Screenshot from 2021-11-18 20-09-43](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/f/f56c90d38fdb00e421feaeb011b6cf70ca79a3e7.png)

---

<div class="post-metadata">

**Author:** ![thatgeeman](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@thatgeeman](https://forum.codewithmosh.com/u/thatgeeman)\
**Post date:** [November 29, 2021, 4:36pm UTC](https://forum.codewithmosh.com/t/12-22-deployment-with-heroku/8608/2 "2021-11-29T16:36:30Z")

</div>

Hi, I think I had the same issue at some point – it was fixed by one of these:

- Pushing from the same hash: try `git add .` and `git commit -m ' '` again
- Check if the git config file points to the correct remote heroku repository in `.git/config`

Try to push to heroku after these steps.
