Capistrano error: Sprockets :: FileNotFound: Could not find file 'bootstrap-sprockets'
I am using stone gem "bootstrap-sass"
.
In application.js
:
//= require jquery
//= require jquery_ujs
//= require bootstrap-sprockets
//= require_tree .
in application.css.scss
:
@import "bootstrap-sprockets";
@import "bootstrap";
On localhost everything works fine, but when I try to deploy the code with 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 this and what am I missing here?
+3
source to share
2 answers