Permalink
Browse files

Add: compile assets on load

  • Loading branch information...
1 parent ee90888 commit 2e7f76ad62f1cbdb4f1b224eaeb7147abe0e114e @jwo jwo committed Jul 7, 2012
Showing with 8 additions and 4 deletions.
  1. +1 −1 Gemfile
  2. +4 −0 Gemfile.lock
  3. +2 −2 config/application.rb
  4. +1 −1 config/environments/production.rb
View
@@ -25,7 +25,7 @@ group :assets do
gem 'coffee-rails', github: 'rails/coffee-rails'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
- # gem 'therubyracer', platforms: :ruby
+ gem 'therubyracer', platforms: :ruby
gem 'uglifier', '>= 1.0.3'
end
View
@@ -103,6 +103,7 @@ GEM
railties (>= 3.2.0, < 5.0)
thor (~> 0.14)
json (1.7.3)
+ libv8 (3.3.10.4)
mail (2.4.4)
i18n (>= 0.4.0)
mime-types (~> 1.16)
@@ -129,6 +130,8 @@ GEM
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sqlite3 (1.3.6)
+ therubyracer (0.10.1)
+ libv8 (~> 3.3.10)
thor (0.15.4)
tilt (1.3.3)
treetop (1.4.10)
@@ -154,4 +157,5 @@ DEPENDENCIES
sass-rails!
sprockets-rails!
sqlite3
+ therubyracer
uglifier (>= 1.0.3)
View
@@ -6,9 +6,9 @@
if defined?(Bundler)
# If you precompile assets before deploying to production, use this line.
- Bundler.require(*Rails.groups(assets: %w(development test)))
+ #Bundler.require(*Rails.groups(assets: %w(development test)))
# If you want your assets lazily compiled in production, use this line.
- # Bundler.require(:default, :assets, Rails.env)
+ Bundler.require(:default, :assets, Rails.env)
end
module Housefire
@@ -15,7 +15,7 @@
config.assets.compress = true
# Don't fallback to assets pipeline if a precompiled asset is missed.
- config.assets.compile = false
+ config.assets.compile = true
# Generate digests for assets URLs.
config.assets.digest = true

0 comments on commit 2e7f76a

Please sign in to comment.