LoginSignup
0
0

More than 3 years have passed since last update.

【Django】herokuデプロイ時に遭遇したエラー その②

Posted at

何があったか?

Djangoで作成したWebアプリをherokuでデプロイするため

$ git push heroku master

を実行したところ、以下のエラーが発生した。

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

原因は?

その①でのデプロイ失敗時にheroku createコマンドで作成したアプリを消していた。
そのためgit push heroku masterで存在しないURLが指定されていた。

解決方法

URLを存在するアプリに指定し直せば良い

$ heroku create    # なければ作成する

$ git remote set-url heroku https://git.heroku.com/aaa-bbb-9876.git    # 作成したURLを指定

これで再度プッシュしてあげれば通りました。

$ git push heroku master

参考

【Heroku】デプロイ(fatal: repository 'app_url' not found)

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0