LoginSignup
10
8

More than 5 years have passed since last update.

herokuでrake db:migrateしたら怒られた.

Posted at

エラーは下の様な感じ

 $ heroku run rake db:migrate
Running rake db:migrate on ⬢ _app_name_... !
 ▸    ECONNRESET: read ECONNRESET
 $ heroku run bundle exec rake db:migrate
Running bundle exec rake db:migrate on ⬢ _app_name_... !
 ▸    ECONNRESET: read ECONNRESET

ECONNRESET が検索してもいい感じの記事が出てこない...

heroku logs を実行すると次の様なエラーが出た.

Error R13 (Attach error) -> Failed to attach to process

heroku logs を元に検索するとstackoverflowに良さげな記事がありました.

$ heroku run:detached rake db:migrate

を実行すると動きました. run:detached は裏側でいい感じに実行してくれるみたい!

検索力ほしいって感じでした...

10
8
1

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
10
8