Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running assets:precompile just hangs, only in production

I don't know what's different now, but ever since a few days ago, running rake assets:precompile just hangs forever. This only happens when I set RAILS_ENV=production.

If I tail -f production.log, I can see this:

Compiled rails_admin/jquery.pjax.js  (0ms)  (pid 28704)
Compiled jquery_nested_form.js  (0ms)  (pid 28704)
Compiled rails_admin/ra.nested-form-hooks.js  (233ms)  (pid 28704)
Compiled bootstrap.js  (10ms)  (pid 28704)
Compiled rails_admin/ra.widgets.js  (240ms)  (pid 28704)
Compiled rails_admin/ui.js  (100ms)  (pid 28704)
Compiled rails_admin/themes/default/ui.js  (0ms)  (pid 28704)
Compiled rails_admin/custom/ui.js  (0ms)  (pid 28704)
Compiled rails_admin/rails_admin.js  (1121ms)  (pid 28704)
Compiled rails_admin/jquery.colorpicker.css  (50ms)  (pid 28704)
Compiled rails_admin/imports.css  (9460ms)  (pid 28704)
Compiled rails_admin/rails_admin.css  (9472ms)  (pid 28704)

Since rails_admin/rails_admin.css is the last thing that shows up, it seems like rails_admin.css might be the culprit. The only thing rails_admin.css does is include a file called imports.css.scss.erb, and if you look at that file, there's so much there that it could be pretty much anything.

Any ideas?

like image 792
Jason Swett Avatar asked Nov 13 '22 13:11

Jason Swett


1 Answers

Making rails_admin.css not include anything made precompilation work.

like image 131
Jason Swett Avatar answered Nov 15 '22 05:11

Jason Swett