I'm having a problem that I'm having trouble diagnosing or reproducing. I'm running a Rails 4.0 app on Puma 2.13 with Rack Timeout 0.2.4 deployed to Heroku on a paid hobby dev plan that should never sleep. I'm finding that when I access the site after a period of inactivity, I'm getting hit with ActionView::Template::Error
errors. I haven't had much success diagnosing the root cause of the problem. Additionally, the problem seems to go away after the first hit on the site. So if I let it idle for a few hours and then ping the site, I get this error, but then if I ping it a second time, all is normal.
Here is a sample of one of the errors:
app[web.1]: ActionView::Template::Error (Request waited 15ms, then ran for longer than 29985ms
app[web.1]: (in /app/app/assets/stylesheets/employers.css.scss)):
app[web.1]: 4:
app[web.1]: 5: <%= csrf_meta_tags %>
app[web.1]: 6:
app[web.1]: 7: <%= stylesheet_link_tag "employers", media: "all" %>
app[web.1]: 8:
app[web.1]: 9: <!-- Favicon -->
app[web.1]: 10: <link rel="apple-touch-icon" sizes="57x57" href="/assets/favicons/apple-touch-icon-57x57.png?v=699PWxAblN">