New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
precompile slow #578
Comments
|
I'm having the same issue #573 |
with -> command finished in 20.084ms config.assets.compress = true -> command finished in 344.198ms config.assets.compress = false -> command finished in 37.712ms |
I switched to https://github.com/tsechingho/ckeditor-rails but had the same slow precompile times in production, and on top of that, ckeditor works in development but not in produdction. |
#579 is now solved, but precompile is still extremely slow. |
@acesuares I think I've found the solution. The problem is that the My solution: # production.rb
config.assets.js_compressor = Uglifier.new(compress: { unused: false }) References:
Let me know if that helps! |
@MarcusSky I have the same problem that @acesuares and I tried your solution. Thanks! |
@MarcusSky Your solution works like a charm, thanks for sharing! |
I copied uglifer gem into production group and changed production.rb |
@tkaboris did you put |
This hasn't worked for me, but I need to investigate further. |
Can be closed. |
Dear,
Lately, precompiling assets is terribly slow. I can't put my finger on it. I am using rails 3.2.21 and the latest gem.
Precompiling in development is fast! But in production slow.
When I precompile locally - that is to say, the precompile is local but the RAILS_ENV is production, it is also terribly slow.
Precompiling in production takes more then 20 minutes.
In application.js I have
/= require 'ckeditor/init'
Any ideas?\
The text was updated successfully, but these errors were encountered: