precompile

Verbose Output From rake assets:precompile

蹲街弑〆低调 提交于 2019-11-29 11:05:07
问题 I've just started using the asset_sync gem and my assets seem to be being compiled out of order, with Sass files unabled to access variables defined in other Sass files. What would really help me narrow down the issue is being able to see exactly what is going on during precompilation, but both rake assets:precompile and heroku run rake assets:precompile doesn't seem to offer a verbose option. All I get is some higher level output followed by a rake aborted! and a stack trace. Tailing heroku

How to give fingerprint css path in production rails 4

风格不统一 提交于 2019-11-29 07:44:21
I am using imgkit to take snapshot of my webpage. I run: RAILS_ENV=production bundle exec rake assets:precompile To precompile my assets. All file of app/assets directory are compiled to public/assets application.css compiled as application-7a23a105125768e41d9d24aee4553615.css . My controller code is: kit = IMGKit.new(render_to_string(:partial => 'form', :height => 200, :transparent => true, :quality => 10, :layout => false,:locals => {:project => @project})) # t = kit.to_img(:png) kit.stylesheets << "#{Rails.root.to_s}/public/assets/application.css" #file = kit.to_file(Rails.root + "public

rake assets:precompile taking extremely long to complete

允我心安 提交于 2019-11-29 01:32:54
In my dev sandbox RAILS_ENV=production rake assets:precompile is taking over 4 minutes to complete. Is this normal. On heroku it is taking over 10 minutes to do the job and sometimes is timing out. Is there any way to disect this and/or speed it up? UPDATE I profiled the CSS vs JS phases of compilation 3.7 s js 175 s css The numbers were made by instrumenting here ---------------------- /Users/bradphelan/.rvm/gems/ruby-1.9.2-p180@gobbq/gems/sprockets-2.1.2/lib/sprockets/processing.rb ---------------------- 266 # Assign a compressor to run on `application/javascript` assets. 267 # 268 # The

Precompile during publish for Azure Web Services

ぃ、小莉子 提交于 2019-11-28 23:25:16
We are using Azure Web Services ( not Web-sites ) and run ASP.Net MVC 5.1 application inside it. When I publish web-sites through Web-deploy, I have an option to "Precompile during publishing": When I publish to Azure Web Services, I can't find this option anywhere. Any pointers? The idea is to pre-compile views, so first hit to a view would not be time-penalised by compiling on the fly. I've looked on Razor Generator but it does not suit our needs. I've seen few other options, but compiling views at publishing stage makes the most sense for our case. UPD: Just for my reference, I've tried

rake assets:precompile RAILS_ENV=production not working as required

為{幸葍}努か 提交于 2019-11-28 18:13:35
I am trying to precompile assets using the command rake assets:precompile RAILS_ENV=production , but I always get the error below. ** Invoke assets:precompile (first_time) ** Execute assets:precompile /usr/bin/ruby /usr/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets --trace ** Invoke assets:precompile:all (first_time) ** Execute assets:precompile:all ** Invoke assets:precompile:primary (first_time) ** Invoke assets:environment (first_time) ** Execute assets:environment ** Invoke environment (first_time) ** Execute environment ** Invoke tmp:cache:clear (first_time) **

Avoid precompiling asset partials in Rails (blacklist by Regex)

 ̄綄美尐妖づ 提交于 2019-11-28 06:17:41
问题 I've seen a few questions/answers around avoiding precompiling various assets while using the Rails pipeline; however, I want to effectively blacklist via an array of Regex's for pathname matches to exclude from precompilation. Most often for me, this is often a set of partials that will fail precompilation anyway. 回答1: First off -- keithgaputis has expertly answered a part of this here but it's not quite an answer to the above question. Read and vote up his answer and then see my additions

rake assets:precompile taking extremely long to complete

只谈情不闲聊 提交于 2019-11-27 16:02:35
问题 In my dev sandbox RAILS_ENV=production rake assets:precompile is taking over 4 minutes to complete. Is this normal. On heroku it is taking over 10 minutes to do the job and sometimes is timing out. Is there any way to disect this and/or speed it up? UPDATE I profiled the CSS vs JS phases of compilation 3.7 s js 175 s css The numbers were made by instrumenting here ---------------------- /Users/bradphelan/.rvm/gems/ruby-1.9.2-p180@gobbq/gems/sprockets-2.1.2/lib/sprockets/processing.rb --------

Precompile during publish for Azure Web Services

回眸只為那壹抹淺笑 提交于 2019-11-27 14:43:50
问题 We are using Azure Web Services ( not Web-sites ) and run ASP.Net MVC 5.1 application inside it. When I publish web-sites through Web-deploy, I have an option to "Precompile during publishing": When I publish to Azure Web Services, I can't find this option anywhere. Any pointers? The idea is to pre-compile views, so first hit to a view would not be time-penalised by compiling on the fly. I've looked on Razor Generator but it does not suit our needs. I've seen few other options, but compiling

rake assets:precompile RAILS_ENV=production not working as required

不想你离开。 提交于 2019-11-27 11:08:47
问题 I am trying to precompile assets using the command rake assets:precompile RAILS_ENV=production , but I always get the error below. ** Invoke assets:precompile (first_time) ** Execute assets:precompile /usr/bin/ruby /usr/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets --trace ** Invoke assets:precompile:all (first_time) ** Execute assets:precompile:all ** Invoke assets:precompile:primary (first_time) ** Invoke assets:environment (first_time) ** Execute assets