&tag(Rails/トラブルシューティング);
*目次 [#q70d8e0f]
#contents
*関連ページ [#sc06f186]
*参考情報 [#d9257280]

*エラー [#b3173f64]
**We're sorry, but something went wrong. [#v137d624]
-画面に表示された場合、アプリログを確認する(log/production.log)。それを見れば代替原因が分かる

**Uncaught exception: Specified 'mysql2'…(2015/10/28) [#td20bd27]
-正確には以下のようなエラーが発生する
  Uncaught exception: Specified 'mysql2' for database adapter, but the gem is not loaded. Add `gem 'mysql2'` to your Gemfile
-[[mysql2 gem v0.4.0 doesn't work · Issue #21544 · rails/rails:https://github.com/rails/rails/issues/21544]]によると、Gemfileでmysql2のバージョンを指定すれば良いらしい。
 gem 'mysql2', '~> 0.3.18'

**DEPRECATION WARNING: The configuration option `config.serve_static_assets` has been renamed to `config.serve_static_files` to clarify its role [#sbf3f169]
-development.rbで「config.serve_static_assets = true」を「config.serve_static_files = true」に変更。

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS