LoginSignup
0
0

More than 3 years have passed since last update.

Ruby on Railsチュートリアルでつまづいたところ

Posted at

* rails 6.0.0 での出来事 *

Ruby on Railsチュートリアル
https://railstutorial.jp

「2.3.5 アプリケーションをデプロイする」でデプロイ失敗
heroku open
すると、503^q^
heroku logs --tail
であとよろしく。的な。

下記サイトを参考にさせていただき
https://qiita.com/m-itoidcf/items/77d064147a32169b5449

そういう時は
heroku run rails console | grep Error
がいいらしい。

自分の場合は
/app/app/models/user.rb:3:in `class:User': uninitialized constant User (call 'User.connection' to establish a connection)::FILL_IN (NameError)
ということらしい。

・・・どういうことか分からないがuser.rbの3行目がおかしい。
のであれば、そこをバッサリ消去!(ついでに同じ内容の4行目も消去) 

結果:エラーなくなりました。

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