[PYTHON] [Django] Error encountered when deploying heroku Part 2

What happened?

To deploy a web app created with Django on heroku

$ git push heroku master

When I executed, the following error occurred.

remote: !   No such app as xxx-yyy-1234.
fatal: repository 'https://git.heroku.com/xxx-yyy-1234git/' not found

What is the cause?

[Part 1] [https://qiita.com/nissy7ok/items/716cc6e973104c6d660d) When the deployment failed, the application created by the heroku create command was deleted. Therefore, a URL that does not exist was specified in git push heroku master.

Solution

Just specify the URL again for the existing app

$ heroku create    #If not, create

$ git remote set-url heroku https://git.heroku.com/aaa-bbb-9876.git    #Specify the created URL

If you push it again with this, it will pass.

$ git push heroku master

reference

[Heroku] Deploy (fatal: repository'app_url' not found)

Recommended Posts

[Django] Error encountered when deploying heroku Part 2
[Django] Trouble encountered when deploying heroku Part 1
Push rejected, failed to compile Go app. Error when deploying Go to Heroku
Deploy the Django app on Heroku [Part 2]
Deploy the Django app on Heroku [Part 1]
Permission error when reading Django upload files
Django Heroku Deploy 1
Django begins part 1
Django begins part 4
[Django] Error when SlugField is specified in .filter ()
Display error message when login fails in Django
Django Heroku Deploy 2
Memo of deploying Django × Postgresql on Docker to Heroku
Miscellaneous notes about deploying the django app on Heroku
Django2.2 SQLite3 version error
heroku deployment memo (Django)
Django settings.py SECRET_KEY error
CSRF validation error when accessing django 3.0 admin page in Chrome
I get [Error 2055] when trying to connect to MySQL on Heroku
What to do if package installation fails when deploying to heroku