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?
Making rails_admin.css
not include anything made precompilation work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With