Rails5にアップデートしたらコンソールにログやputsがでなくなった
問題
rails5にアップデートするとアプリケーションサーバーがpumaに変わる。そん状態でrails s
すると
=> Booting Puma => Rails 5.0.0.1 application starting in development on http://localhost:3000 => Run `rails server -h` for more startup options Puma starting in single mode... * Version 3.9.0 (ruby 2.2.2-p95), codename: Private Caller * Min threads: 5, max threads: 5 * Environment: development * Listening on tcp://localhost:3000 Use Ctrl-C to stop
とでてhttp://localhost:3000/hogehoge
にアクセスするが、叩かれてるSQLやファイルの読み込み(rails5からデフォルトでOFFらしい)やcontorllerでputs "hoge"
とやっても何も表示されない。
解決方法
$ rails server webrick
でアクセスするとrails4同様ターミナルにいろいろとログや読み込みファイルが表示される。
-.-.-.
(Gemfile)
group :production do gem 'puma' end
にしてproductionだけにしたほうがいいのかな?