Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed precompiling again

  • Loading branch information...
commit b3c43fbec8795b2f9b7ec90cc4622eb48e3cda6b 1 parent 91b51ab
@BDQ BDQ authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  README.md
  2. +1 −1  Rakefile
  3. +1 −1  core/lib/spree_core/railtie.rb
View
2  README.md
@@ -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.
View
2  Rakefile
@@ -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
View
2  core/lib/spree_core/railtie.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.