简体   繁体   中英

Rails how to rescue from a Error R15 from Heroku

I have a small web application and when I upload a handful of large images I get Error R15 (Memory quota vastly exceeded) message from Heroku and displays my errors 500 page.

I want to be able to rescue gracefully from this error and then show the homepage.

any ideas?

The R15 error comes from a level above your application - you won't be able to handle it in the Rails app. Unless you can reduce the amount of memory the app uses, there's not much you can do, short of using a dyno with more RAM.

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