简体   繁体   中英

rails console commands are logged?

In a deploy production.log was deleted and then someone ran a delete_all in a Model by mistake without backing up the database, is there any place where it is logged the console output or that data is gone forever?

Edit: the database is MySql and the hosting is Amazon Beanstalk.

Sounds like you're in a tough spot. To prevent this sort of thing from happening in the future, consider using something like LogEntries or MongoDB to record all your logs and prevent them from getting deleting by storing them off-site. LogEntries is very easy to use, but you can find further reading for MongoDB here and here .

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