Rails 4 exception stack traces don't show in development

前端 未结 10 1600
星月不相逢
星月不相逢 2021-02-19 18:52

I\'m following the rails tutorial book and using the c9.io web IDE as I follow the tutorials. While working on my sample application, I noticed that exceptions aren\'t being sho

相关标签:
10条回答
  • 2021-02-19 19:46

    Check the permissions of both 'log/development.log' folder and file to make sure rails can write there.

    0 讨论(0)
  • 2021-02-19 19:50

    Try to let just config.consider_all_requests_local = true (in config/environments/development.rb)

    and remove this line config.log_level = :debug (in config/environments/development.rb)

    also, you can try with the gem better errors to see if it fix the problem https://github.com/charliesome/better_errors

    if this doesn't fix it, run a "bundle update" in general, to see if there is a gem that is causing problems

    0 讨论(0)
  • 2021-02-19 19:54

    You're not running the application in development. Rails apps can be run locally with rails s (short for rails server). Make sure you have RAILS_ENV or equivalent set to development.

    0 讨论(0)
  • 2021-02-19 19:54

    Take a look into production log (log/production.log) on the server or log/ directory for other logs, for example log/unicorn.stderr.log or log/puma.log

    0 讨论(0)
提交回复
热议问题