Reputation: 48513
I am using the gem "bootstrap-sass"
gem.
In application.js
:
//= require jquery
//= require jquery_ujs
//= require bootstrap-sprockets
//= require_tree .
in application.css.scss
:
@import "bootstrap-sprockets";
@import "bootstrap";
On localhost works everything perfectly, but when I try to deploy the code using Capistrano
, I get this error message:
...
* executing "cd -- /home/deployer/apps/app-name/releases/20140805182229 && RAILS_ENV=production RAILS_GROUPS=assets bundle exec rake assets:precompile"
servers: ["IP"]
[IP] executing command
** [out :: IP] rake aborted!
** [out :: IP]
** [out :: IP] Sprockets::FileNotFound: couldn't find file 'bootstrap-sprockets'
** [out :: IP]
** [out :: IP] (in /home/deployer/apps/app-name/releases/20140805182229/app/assets/javascripts/application.js:17)
...
The line #17
points here:
//= require bootstrap-sprockets
Why is that & what am I missing here?
Upvotes: 3
Views: 4031
Reputation: 192
FYI I was able to fix this issue by moving gem 'bootstrap-sass', '~> 3.3.1' to the top of the Gemfile, underneath the gem 'rails' line. I don't know why it breaks if it's after refinerycms in the Gemfile.
Upvotes: 0
Reputation: 175
I had the same problem, but seemed to solve the problem by restarting the server after you bundle install. Hope that helps.
Upvotes: 4