Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Misc speed improvements

  • Loading branch information...
commit 120c417a8a766a5abff2a43d42e931f8c10bda4d 1 parent ca35b5e
Gavin Brock authored March 25, 2012
1  Gemfile
@@ -18,6 +18,7 @@ group :assets do
18 18
   gem 'sass-rails'
19 19
   gem 'coffee-rails'
20 20
   gem 'uglifier'
  21
+  gem 'yui-compressor'
21 22
 end
22 23
 
23 24
 
8  Gemfile.lock
... ...
@@ -1,6 +1,10 @@
1 1
 GEM
2 2
   remote: http://rubygems.org/
3 3
   specs:
  4
+    POpen4 (0.1.4)
  5
+      Platform (>= 0.4.0)
  6
+      open4
  7
+    Platform (0.4.0)
4 8
     actionmailer (3.2.2)
5 9
       actionpack (= 3.2.2)
6 10
       mail (~> 2.4.0)
@@ -57,6 +61,7 @@ GEM
57 61
     modernizr-rails (2.0.6)
58 62
     multi_json (1.1.0)
59 63
     nokogiri (1.5.2)
  64
+    open4 (1.3.0)
60 65
     polyglot (0.3.3)
61 66
     rack (1.4.1)
62 67
     rack-cache (1.2)
@@ -103,6 +108,8 @@ GEM
103 108
       execjs (>= 0.3.0)
104 109
       multi_json (>= 1.0.2)
105 110
     yajl-ruby (1.1.0)
  111
+    yui-compressor (0.9.6)
  112
+      POpen4 (>= 0.1.4)
106 113
 
107 114
 PLATFORMS
108 115
   ruby
@@ -119,3 +126,4 @@ DEPENDENCIES
119 126
   sqlite3
120 127
   uglifier
121 128
   yajl-ruby
  129
+  yui-compressor
1  config/environments/production.rb
@@ -13,6 +13,7 @@
13 13
 
14 14
   # Compress JavaScripts and CSS
15 15
   config.assets.compress = true
  16
+  config.assets.css_compressor = :yui
16 17
 
17 18
   # Don't fallback to assets pipeline if a precompiled asset is missed
18 19
   config.assets.compile = true
1  etc/apache2/sites-available/jishin.me
@@ -7,6 +7,7 @@ PassengerRuby /usr/local/rvm/wrappers/ruby-1.9.2-p180/ruby
7 7
   ServerAlias www.jishin.me
8 8
   DocumentRoot /home/www/jishin.me/public
9 9
 
  10
+  AddDefaultCharset utf-8
10 11
   XSendFile on
11 12
   AddOutputFilterByType DEFLATE text/html text/plain text/xml application/javascript text/css
12 13
   # Asset Expiration

0 notes on commit 120c417

Please sign in to comment.
Something went wrong with that request. Please try again.