最佳实践怎样变成了最慢实践_XDite总论.pdfVIP

  • 1
  • 0
  • 约1.15万字
  • 约 48页
  • 2018-09-20 发布于湖北
  • 举报

最佳实践怎样变成了最慢实践_XDite总论.pdf

最佳實踐如何變成了最慢實踐 ⼗個你不知道會導致效能低落的設計 12年11月18 ⽇星期⽇ Me • • Rails Developer ( 2007~ ) • ROCO Inc. Founder • Facebook World Hack 世界⾸獎 12年11月18 ⽇星期⽇ why this topic? 12年11月18 ⽇星期⽇ We follow • Convention over configuration • Best Practices • Default • Instinct!!! 12年11月18 ⽇星期⽇ 效能越來越差 12年11月18 ⽇星期⽇ New Relic 抓不出來 12年11月18 ⽇星期⽇ 抓不到的地⽅ • Deployment • Asset Compiling • Loading Environment • ActiveRecord (MySQL) convention • View 12年11月18 ⽇星期⽇ Deployment 12年11月18 ⽇星期⽇ Bundler Wrong Slow desc Run bundle install task :install_bundle_gems do run cd #{deploy_to}/current; RAILS_ENV=#{rails_env} bundle install end 12年11月18 ⽇星期⽇ Bundler Solution load ‘bundler/capistrano’ bundle install --gemfile /home/apps/project/releases/20121114191908/Gemfile --path /home/apps/d4dpr/shared/ bundle --deployment --quiet --without development test 12年11月18 ⽇星期⽇ Deploy with Asset precompile Wrong Slow rake RAILS_ENV=production assets:precompile 12年11月18 ⽇星期⽇ Deploy with Asset precompile Solution load deploy/assets rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile 12年11月18 ⽇星期⽇ Deploy with Asset precompile set :assets_dep

文档评论(0)

1亿VIP精品文档

相关文档