joelmoss / strano

Capistrano and Github sittin' in a tree...
http://developwithstyle.com
MIT License
579 stars 70 forks source link

Cannot load such file -- less #31

Closed yevgenko closed 11 years ago

yevgenko commented 11 years ago

LoadError in Dashboard#index

Showing /home/wik/Playground/strano/app/views/layouts/application.html.erb where line #20 raised:

cannot load such file -- less
  (in /home/wik/Playground/strano/app/assets/stylesheets/bootstrap_and_overrides.css.less)

Extracted source (around line #20):

17:   <link rel="apple-touch-icon" sizes="72x72" href="/assets/apple-touch-icon-72x72.png">
18:   <link rel="apple-touch-icon" sizes="114x114" href="/assets/apple-touch-icon-114x114.png">
19:   
20:   <%= stylesheet_link_tag    "application" %>
21:   <%= javascript_include_tag "application" %>
22:   <%= csrf_meta_tags %>
23: </head>
yevgenko commented 11 years ago

According to https://github.com/seyhunak/twitter-bootstrap-rails#installing-the-less-stylesheets The following also needed:

gem "therubyracer"
gem "less-rails" #Sprockets (what Rails 3.1 uses for its asset pipeline) supports LESS
gem "twitter-bootstrap-rails"
yevgenko commented 11 years ago

And therubyracer require libv8 on the machine, adding the following to Gemfile finally solved the problem:

gem 'libv8', '~> 3.11.8'
yevgenko commented 11 years ago

IMHO quite heavy dependencies as for css framework :smile: Anyway do you think it is good idea to put above into Gemfile?

yevgenko commented 11 years ago

Oops, all above dependencies already in the Gemfile.lock, the reason I messed with is because I removed my Gemfile.lock because of capistrano issue #31. Anyway I wasn't able to install therubyracer 0.10.0, see another issue...