Created
October 27, 2011 15:53
-
-
Save hecbuma/1319954 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.9.2@fvaults (fix-assets)$ git show e7783c0e182e622e739a76174ebfe5bb67741a42 | |
commit e7783c0e182e622e739a76174ebfe5bb67741a42 | |
Author: Hector Bustillos <[email protected]> | |
Date: Thu Oct 27 10:42:53 2011 -0500 | |
fix assets to compile in heroku | |
diff --git a/config/application.rb b/config/application.rb | |
index 2041fb9..6069299 100644 | |
--- a/config/application.rb | |
+++ b/config/application.rb | |
@@ -4,7 +4,7 @@ require 'rails/all' | |
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) | |
# If you want your assets lazily compiled in production, use this line | |
# Bundler.require(:default, :assets, Rails.env) | |
end | |
@@ -47,7 +47,8 @@ module Fvaults | |
# Version of your assets, change this if you want to expire all your assets | |
config.assets.version = '1.0' | |
- config.assets.precompile += ['admin.css', 'admin.js', 'landingpage.css', 'store.css'] | |
+ config.sass.load_paths << Compass::Frameworks['compass'].stylesheets_directory if Rails.configuration.respond_to?(:sass) | |
+ config.assets.precompile += ['admin.css', 'admin.js', 'store.css'] | |
config.generators do |g| | |
g.test_framework :rspec, fixture: true | |
diff --git a/config/environments/production.rb b/config/environments/production.rb | |
index d55f38d..d408d25 100644 | |
--- a/config/environments/production.rb | |
+++ b/config/environments/production.rb | |
@@ -15,7 +15,7 @@ Fvaults::Application.configure do | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment