Bootstrap sass + font awesome sass has worked well for us. 

Rob


—
Sent from Mailbox

On Fri, Nov 21, 2014 at 1:06 PM, Chris McCann <[email protected]>
wrote:

> I'm trying to deploy a Rails 4 app that uses twitter-bootstrap-rails and 
> Less stylesheets onto Heroku.
> Apparently Heroku frowns upon using therubyracer, which less-rails 
> requires, due to the bloated slug size that result.  During Heroku deploys 
> with therubyracer (or libv8) gems the 'bundle install' will simply hang 
> (clearly failing).
> Removing therubyracer/libv8 from the production gems and precompiling the 
> assets before deploying to Heroku seems to solve the issue, until the app 
> is run:
> I, [2014-11-21T20:36:58.449089 #2]  INFO -- : Refreshing Gem list
> [WARNING] Please install gem 'therubyracer' to use Less.
> /app/vendor/bundle/ruby/2.1.0/gems/less-2.5.1/lib/less/java_script/v8_context.rb:2:in
>  
> `require': cannot load such file -- v8 (Load
>   from 
> /app/vendor/bundle/ruby/2.1.0/gems/less-2.5.1/lib/less/java_script/v8_context.rb:2:in
>  
> `<top (required)>'
>   from 
> /app/vendor/bundle/ruby/2.1.0/gems/less-2.5.1/lib/less/java_script.rb:9:in 
> `require'
>   from 
> /app/vendor/bundle/ruby/2.1.0/gems/less-2.5.1/lib/less/java_script.rb:9:in 
> `default_context_wrapper'
>   from /app/vendor/bundle/ruby/2.1.0/gems/less-2.5.1/lib/less.rb:14:in 
> `<module:Less>'
>   from 
> /app/vendor/bundle/ruby/2.1.0/gems/less-2.5.1/lib/less/loader.rb:13:in 
> `initialize'
>   from 
> /app/vendor/bundle/ruby/2.1.0/gems/less-2.5.1/lib/less/java_script.rb:17:in 
> `context_wrapper'
>   from /app/vendor/bundle/ruby/2.1.0/gems/less-2.5.1/lib/less.rb:14:in `new'
>   from /app/vendor/bundle/ruby/2.1.0/gems/less-2.5.1/lib/less.rb:9:in `<top 
> (required)>'
>   from 
> /app/vendor/bundle/ruby/2.1.0/gems/less-rails-2.5.0/lib/less/rails.rb:6:in 
> `require'
>   from 
> /app/vendor/bundle/ruby/2.1.0/gems/less-rails-2.5.0/lib/less/rails.rb:6:in 
> `<top (required)>'
>   from 
> /app/vendor/bundle/ruby/2.1.0/gems/less-rails-2.5.0/lib/less-rails.rb:1:in 
> `require'
>   from 
> /app/vendor/bundle/ruby/2.1.0/gems/less-rails-2.5.0/lib/less-rails.rb:1:in 
> `<top (required)>'
>   from 
> /app/vendor/bundle/ruby/2.1.0/gems/bundler-1.6.3/lib/bundler/runtime.rb:76:in 
> `require'
>   from 
> /app/vendor/bundle/ruby/2.1.0/gems/bundler-1.6.3/lib/bundler/runtime.rb:76:in 
> `block (2 levels) in require'
>   from 
> /app/vendor/bundle/ruby/2.1.0/gems/bundler-1.6.3/lib/bundler/runtime.rb:72:in 
> `each'
>   from 
> /app/vendor/bundle/ruby/2.1.0/gems/bundler-1.6.3/lib/bundler/runtime.rb:72:in 
> `block in require'
>   from 
> /app/vendor/bundle/ruby/2.1.0/gems/bundler-1.6.3/lib/bundler/runtime.rb:61:in 
> `each'
>   from /app/config/environment.rb:2:in `require'
>   from /app/config/environment.rb:2:in `<top (required)>'
>   from config.ru:4:in `require'
>   from config.ru:4:in `block in <main>'
>   from 
> /app/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in 
> `instance_eval'
>   from 
> /app/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in 
> `initialize'
>   from config.ru:1:in `new'
>   from config.ru:1:in `<main>'
> So my question is, has anyone had any luck deploying and running this 
> configuration on Heroku?  If so, how?
> I'm considering switching to bootstrap-sass since it doesn't appear to have 
> this same crippled dependency, but I really don't want to have to redo all 
> the FontAwesome icons in the app with Glyphicons, which appears to be the 
> default in bootstrap-sass.
> Any words would be appreciated!
> Cheers,
> Chris
> -- 
> -- 
> SD Ruby mailing list
> [email protected]
> http://groups.google.com/group/sdruby
> --- 
> You received this message because you are subscribed to the Google Groups "SD 
> Ruby" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
-- 
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby
--- 
You received this message because you are subscribed to the Google Groups "SD 
Ruby" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to