简体   繁体   中英

Rails: How to debug in production environment?

I've deployed to a VPS, but when visiting to my site, message shows:

We're sorry but something went wrong.

How could I start to debug?

I've deployed this commit successfully to heroku before. And before pushing to VPS, the site was running well. I tried to see the log/production.log , but it only says Connecting to database specified by database.yml

在此输入图像描述

Start with logs. Set more verbose log level to see what happens: set config.log_level = :debug in your config/environments/production.rb

More general, try something like errbit to see details about your production errors.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM