Skip to content

Commit

Permalink
Fixed precompiling again
Browse files Browse the repository at this point in the history
  • Loading branch information
BDQ committed Oct 11, 2011
1 parent 91b51ab commit b3c43fb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -49,7 +49,7 @@ Peformance

Rails 3.1 introduced a concept known as the asset pipeline. Unfortunately it results in poor performance when running your site in development mode (production mode is unaffected.) You may want to run the following command when testing locally in development mode

$ bundle exec rake assets:precompile RAILS_ENV=development RAILS_ASSETS_NONDIGEST=true
$ bundle exec rake assets:precompile:nondigest

Using the precompile rake task in development will prevent any changes to asset files from being automatically included in when you reload the page. You must re-run the precompile task for changes to become available.

Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -98,5 +98,5 @@ task :sandbox do
Spree::SiteGenerator.start

cmd = "bundle exec rake db:bootstrap AUTO_ACCEPT=true"; puts cmd; system cmd
cmd = "bundle exec rake assets:precompile RAILS_ENV=development RAILS_ASSETS_NONDIGEST=true"; puts cmd; system cmd
cmd = "bundle exec rake assets:precompile:nondigest"; puts cmd; system cmd
end
2 changes: 1 addition & 1 deletion core/lib/spree_core/railtie.rb
Expand Up @@ -55,7 +55,7 @@ def self.activate
end

# sets the manifests / assets to be precompiled
initializer "spree.assets.precompile", :group => :assets do |app|
initializer "spree.assets.precompile" do |app|
app.config.assets.precompile += ['store/all.*', 'admin/all.*', 'admin/spree_dash.*', 'admin/orders/edit_form.js', 'jqPlot/excanvas.min.js', 'admin/images/new.js']
end

Expand Down

0 comments on commit b3c43fb

Please sign in to comment.