-
Notifications
You must be signed in to change notification settings - Fork 186
Unable to compile assets on production #41
Comments
Does this error happen when you run rake assets:precompile? On Thu, Jul 4, 2013 at 12:35 AM, Grep Ruby [email protected]
|
Yes, when I am trying to deploy on heroku as well as running this command on my local on production mode. |
Same issue for me. |
I have fixed this issue from my end just by adding following gem out side of assets group in gem file: gem 'compass' Thanks Ryan to provide such a nice gem. |
@DevilCoders Should we add these two gems as dependencies of |
I'm seeing this issue right now with the 2-1-stable branch. I'm unable to compile spree_fancy's assets, and see the same $c_green error described above. If I neuter that line from the file, I just hit another one later. Is anyone one else seeing this? I can't figure out if I'm doing something wrong or not. I have added both compass and compass-rails as suggested above, and didn't seem to change anything. I went forward and backward a couple of compass major versions and didn't see the issue go away. I'm stumped. |
Hi @hexcodejosh, can you provide us with an application that reproduces this issue please? |
sure, I'll create something from scratch and see if I can reproduce. |
Thank you! On Wed, Oct 23, 2013 at 12:24 PM, hexcodejosh [email protected]:
Ryan Bigg |
No dice.. can't reproduce it. Here's a log of what I did in case someone else stumbles on it. I'll keep looking for some diff that triggers it. From a fresh directory, ran following commands: rails 4.0.0 new mystore
rails server <---- works at this point RAILS_ENV=production bundle exec rake assets:precompile <--- runs without issue Added following to end of Gemfile:
bundle install <---- ran without errors rails server <---- works at this point RAILS_ENV=production bundle exec rake assets:precompile <--- works at this point However, here are the following assets that are precompiled in this step:
Its missing some of the assets, such as bx_loader.gif, icons.*, as I describe in issue: If I made that proposed fix and re-run the precompile, I get a boatload of prints, and the following assets are also compiled:
Hrmmmmm... it's working. How did I break my other working copy....? Have been gradually pulling in changes from my broken tree.
This also compiles. Hrmmmm.... not sure how this happened. |
Ah, I'm a victim of my own enthusiasm. If I modify my Gemfile to pull a tag from my fork of spree_fancy, I can reproduce it. #gem 'spree_fancy', :github => 'spree/spree_fancy', :branch => '2-1-stable' So I think my proposed fix to #61 is too aggressive and must be pulling in some files that it shouldn't. Guessing they're then getting precompiled directly, rather than being imported as they would normally...? I'll comment out the loop in that fix and see if this issue goes away. |
So this fixed my issue: |
I still have the same issue with spree_fancy 2-0-stable. rake aborted! |
I was getting "File to import not found or unreadable: store/variables_override." when i try to deploy spree fancy with capistrano. It was working fine in development. My gemfile: But now it broke my development environment when I tried putting gem 'compass' and gem 'compass-rails' in my gemfile and deleting lock, then running bundle install. Now In development i see: bundler/gems/spree-366514f5036e/frontend/app/views/spree/shared/_head.html.erb File to import not found or unreadable: store/variables_override. I've removed the compass gems and then deleted the lock file and did a bundle install again but my development is still broken |
The same issue is reproducible in 2-2-stable only in production mode; occurs during
|
Does anyone know how to solve this? |
It seems to be fixed on the latest spree 2.2 On Mon, Jun 30, 2014 at 6:13 PM, vike27 [email protected] wrote:
|
I am on spree 2-2 stable and running into this issue in production as well... Been a week and can't fix it... |
Hi @vike27, do you have an app that I can clone and reproduce this issue in? That would help me be able to debug it. |
The issue happens with this application: I'll be working on it this weekend, was going to try and use 2-1 stable. Javier On Sun, Jul 6, 2014 at 6:11 PM, Ryan Bigg [email protected] wrote:
|
Good news! |
Gem file entry:
gem 'spree_fancy', :github => 'spree/spree_fancy', :branch => '1-3-stable'
I have added below line in application.rb
config.assets.precompile += %w( store/shared/_print.css )
But still getting another issue -
Undefined variable: "$c_green"
could you please provide me guidance so that I can get do the proper assets compilation on production.
The text was updated successfully, but these errors were encountered: