Whenever I run rake assets:precompile, I get a manifest.yml file that looks like:
--- {}
Something must be going wrong. Here is my output for rake assets:precompile --trace:
** Invoke assets:precompile (first_time)
** Execute assets:precompile
/Users/user/.rvm/rubies/ruby-1.9.3-p194/bin/ruby /Users/user/.rvm/gems/ruby-1.9.3-p194@global/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets --trace
** Invoke assets:precompile:all (first_time)
** Execute assets:precompile:all
** Invoke assets:precompile:primary (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke tmp:cache:clear (first_time)
** Execute tmp:cache:clear
** Execute assets:precompile:primary
** Invoke assets:precompile:nondigest (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke tmp:cache:clear (first_time)
** Execute tmp:cache:clear
** Execute assets:precompile:nondigest
Can someone help?? Thanks!
UPDATE:
Feel free to look at my code at http://www.github.com/sambaek/novulty
When I run
rake assets:precompilefor your application I get the following outputI’m not sure what your intention is, but you have
app/asssets/bootstrap.min.cssbeing included inapp/assets/application.cssgem 'bootstrap-sass'in yourGemfilewhich appears to causebootstrap-sass-2.1.0.1/vendor/assets/stylesheets/bootstrap/_accordion.scss(among other files) to be added to your pipeline even though they’re not included in require lines inapp/assets/application.cssIt seems like you have the bootstrap gem included to use it’s Javascript plugins, but are trying to omit the SASS files in favor of the hard-coded, minified CSS file?
In any event, the error I get says that the
$baseLineHeightSASS variable is not defined for a line in that gem file’s asset – an asset you otherwise appear to ignore (from the best I can tell).I then did the following
Commented out the
bootstrap-sassgem in yourGemfileRan
bundlerake assets:cleanRemoved the following require lines from your
app/assets/application.jsbecause they were coming from thebootstrap-sassgem I removed in 1. aboveRan
rake assets:precompileThis results in the following
public/assets/manifest.yml.I think you need to either of the following
bootstrap-sassgem as intended. Include the SASS files in yourapp/assets/application.css(doing this it a bit outside the scope of this question)bootstrap-sassgem as I have above, and include the necessary Javascript files as assets in yourvendor/assets/javascriptsdirectory (which is whereapp/assets/stylesheets/bootstrap.min.cssbelongs too –vendor/assets/stylesheets)