Godzilla74
Godzilla74

Reputation: 2502

Rails 5 Request ran for longer than 5000ms

I'm stumped. I have a vanilla install of Rails 5 running within docker yet I'm constantly getting this error:

Request ran for longer than 5000ms

enter image description here

All I've done so far was generate a new controller with docker-compose run website rails g controller pages.

So far, if I remove (very important) lines from layouts/application.html.erb, I can get the page to load:

 <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
 <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>

But I loose all my default styling (bootstrap) and any potential javascript files I wish to load later in life, which I do not consider to be a fix.

Anyone else run into this problem and know how to fix it?

Upvotes: 2

Views: 1967

Answers (1)

Lex
Lex

Reputation: 5014

@JimmyBaker answered in the comments

Try setting config.assets.debug to false

Inside config/development.rb

config.assets.debug = false

Having this set to false will cause all CSS & JS to be bundled into application.css or application.js More on assets.debug

Upvotes: 1

Related Questions