我本地預編譯資產like this RAILS_ENV =產品包的exec耙資產:預編譯,但它太減慢12小時。我不知道會發生什麼!我不知道如何開始做一些事情。 此外,當我在一些樣式表文件進行更改,這些延遲10秒左右Rails的資產預編譯太慢〜12小時
請任何人都可以幫助我,謝謝!
這是我applications.css.scss
@import "_font-awesome";
@import "jquery.ui.core";
@import "jquery.ui.theme";
@import "dataTables/src/demo_table_jui";
@import "token-input-facebook";
@import "fullcalendar";
@import "fullcalendar.print";
@import "bootstrap";
@import "bootstrap-multiselect";
@import "bootstrap-datetimepicker";
@import "header";
@import "sub_header";
@import "students";
@import "people";
@import "institutions";
我的Gemfile:
gem 'sass-rails', '>= 3.2'
gem 'bootstrap-sass', '~> 3.0.3.0'
其版本:
bootstrap-sass (3.0.3.0)
sass (3.2.12)
sass-rails (3.2.6)
附加信息:
rails 3.2.16
ruby 1.9.3
UPDATE1
UPDATE2
當我把禁用資產壓縮config.assets.compress = false
,在生產模式下,我得到它的結果:
real 5m13.113s
user 5m5.355s
sys 0m5.268s
UPDATE3
得到了改善,但沒有解決方案。
- 我改變css_compresor,現在,我使用
:yui
。 - 我更改
application.css.scss
贊成使用Sprockets require指令。
現在這是我的application.css.scss file。
預編譯它的時間是:〜24分鐘
**12小時**,嚴重? –
是的!,它是瘋了 – edudepetris
你能給我們整個Gemfile嗎? – marvelousNinja