Precompiling assets failed
還找不到解答,卡關中…
8/3 20:30 Edit: Devise.secret_key was not set. Please add the following to your Devise initializer
加上要求的設定值 config.secret_key
之後成功 git push heroku ch08:master
,然後 db:migrate 又卡關了 Orz
8/3 21:00 Edit:
Gemfile
1 | gem 'pg' |
config/database.yml
1 | production: |
進 Heroku 砍掉原本的apps,重新 push 再下 heroku rails db:migrate
終於開站了~
https://infinite-stream-15278.herokuapp.com/
心得:如果卡關了不要一直重複push上去,修改完 git commit 之後試著重新開 heroku create 再run一次看看
Build log
1 | -----> Detecting rake tasks |
heroku run rails db:migrate
失敗
1 | Kai ⮀ rails101-1 ⮀ ruby-2.5.1 ⮀ ⭠ ch08 ⮀ heroku run rails db:migrate --trace |