1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【Heroku】Confirmation did not match Herokuのアプリ名. Aborted.」と言われた時の対処法

Posted at

症状

Railsチュートリアル第10章のHerokuデプロイ時に発生しました。

heroku run rails db:seedをしたところ、dbmigrateをもう一度試すように言われてしまいました。

# Herokuのデータベースをリセット
heroku pg:reset DATABASE

# Heroku上でdb:migrate
heroku run rails db:migrate
WARNING: Destructive action
 ▸    postgresql-hogefuga will lose all of its data
 ▸    
 ▸    To proceed, type hogepiyo or re-run this command with --confirm hogepiyo

# Heroku上のDBにseedのデータを適用
heroku run rails db:seed
try "run rails db:migrate"

解決法

heroku run rails db:migrateを実行したときにHerokuのアプリ名を確認として入力で解決しました。
メッセージに書いてあったので、メッセージを読め案件でした。

confirm hogefuga

参考

Railsチュートリアル第10章
1
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?