有没有办法在生产环境中看到所有生成的查询,就像你在开发中一样?
Yes you can. If you go in the config/environments/production.rb file, there's a section like this:
# See everything in the log (default is :info)
# config.log_level = :debug
Uncomment the config.log_level line, and you'll get the same log in production as you would in dev.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.