I implemented this and my memory consumption on Heroku went up by 40Mb. The truth is I wonder if I even need this on a Heroku production environment. Is it advisable to run this in development only?
require 'bootsnap/setup' if Rails.env.development?
Yeah, it's encouraged for production, because production will boot faster. The extra RAM usage is going to come from the cache it because that's how it boots faster. It's trading RAM for speed.
Certain memory constrained environments, like Heroku typically is, may not be a great place to do this if you're struggling to keep your app's memory usage down. Otherwise, you should basically use this all the time.
Hi Masud. Recently I moved from AWS to Heroku and that was the best decision I made. Everything worked out-of-the-box. The application itself, solr, the database. Everything was reeeally easy to set up.
I didn't check Digital Ocean though. Could you elaborate on why Digital Ocean was the best decision for you? Thanks!
Join 22,346+ developers who get early access to new screencasts, articles, guides, updates, and more.