tamarakorr / stepup-demo

StepUp Demo
0 stars 0 forks source link

Most recent version of SASS-related gem dependencies causes the CSS files to fail to compile. #1

Open tsrivishnu opened 10 years ago

tsrivishnu commented 10 years ago
rm -rf tmp/*  
rm -rf public/assets/*  
RAILS_ENV=production rake assets:precompile --trace  

and then of course:

(git add ., git commit, git push (--all), git push (-f) heroku branch-name:master)  

This of course makes a mess in git. So please do it as its own separate commit (i.e. git commit -am 'Precompile assets for Heroku').

tsrivishnu commented 10 years ago

@tamarakorr I was looking at this and changed the line gem 'bootstrap-sass', '2.3.2.0' to gem 'bootstrap-sass' and ran bundle update, pushed it to a sample heroku app to check. It seems to have pre compiled normally and all looks good. http://stepup-demo-staging.herokuapp.com/

However, I have got a few warnings,

Warning. Error encountered while saving cache 77bf2ec6ac6f9d055fa58c618d61be57e58bd659/users.css.scssc: can't dump anonymous class #<Class:0x00000102ca3278>

I suppose these are not what you are talking about. Let me know.

tsrivishnu commented 10 years ago

@tamarakorr Also, add me to the repo as contributor? I shall push my code so that we can check.

tamarakorr commented 10 years ago

Hi Vishnu,

I think those warnings just come up with bootstrap generally. Indeed they weren't what I meant - the problem made Heroku completely unable to deploy.

The file causing the error wasn't specifically listed in the StepUp Gemfile. It was the SASS gem itself - version 3.4.2 specifically. Many developers suddenly had the same problem that night, when version 3.4.2 went online. I see the owners of SASS have updated the gem three times since v3.4.2. So the problem is probably fixed now. (Unless it was in Bootstrap CSS itself...)

If your check works we can update the notes. I just added you as a collaborator. Have a great day, Tammy

On Mon, Sep 22, 2014 at 6:49 AM, Sri Vishnu Totakura < notifications@github.com> wrote:

@tamarakorr https://github.com/tamarakorr Also, add me to the repo as contributor? I shall push my code so that we can check.

— Reply to this email directly or view it on GitHub https://github.com/tamarakorr/stepup-demo/issues/1#issuecomment-56331173 .