title: Cap deploy assets precompile error
body: <p>I am setting up new staging server for my application. Existing staging, as well as development environments with the same release versions work fine.</p>
  
  <p>Trying to <code>cap deploy</code>, I receive the following error:</p>
  
  <pre><code>    [1906b0ea] Command: cd /home/user/appname/releases/20160831113756 &amp;&amp; ( export RAILS_ENV="production" ; ~/.rvm/bin/rvm 2.3.0 do bundle exec rake assets:precompile )
  rake aborted!
  ...
  Sprockets::FileNotFound: couldn't find file 'datatables' with type 'application/javascript'
  Checked in these paths: 
    /home/user/appname/shared/bundle/ruby/2.3.0/gems/babel-source-5.8.35/lib
    /home/user/appname/releases/20160831113756/app/assets/images
    /home/user/appname/releases/20160831113756/app/assets/javascripts
    /home/user/appname/releases/20160831113756/app/assets/stylesheets
    /home/user/appname/shared/bundle/ruby/2.3.0/gems/jquery-datatables-rails-3.3.0/app/assets/images
    /home/user/appname/shared/bundle/ruby/2.3.0/gems/jquery-datatables-rails-3.3.0/app/assets/javascripts
    /home/user/appname/shared/bundle/ruby/2.3.0/gems/jquery-datatables-rails-3.3.0/app/assets/media
    /home/user/appname/shared/bundle/ruby/2.3.0/gems/jquery-datatables-rails-3.3.0/app/assets/stylesheets
    /home/user/appname/shared/bundle/ruby/2.3.0/gems/cocoon-1.2.8/app/assets/javascripts
    /home/user/appname/shared/bundle/ruby/2.3.0/gems/turbolinks-2.5.3/lib/assets/javascripts
    /home/user/appname/shared/bundle/ruby/2.3.0/gems/jquery-rails-4.1.1/vendor/assets/javascripts
    /home/user/appname/releases/20160831113756/vendor/assets/bower_components
    /home/user/appname/releases/20160831113756/tmp/themes
        /home/user/ap
  </code></pre>
  
  <p>pname/releases/20160831113756/vendor/assets/bower_components</p>
  
  <p>Here is my <code>application.js</code> file
              //</p>
  
  <pre><code>= require jquery
              //= require jquery_ujs
              //= require datatables
              //= require turbolinks
              //= require cocoon
              //= require select2
              //= require highcharts
              //= require highcharts/highcharts-more
              //= require sparklines
              //= require rangeslider.js/dist/rangeslider
              //= require Sortable
              //= require moment
              //= require pikaday
              //= require tooltipster
              //= require urijs
              //= require jscolor/jscolor
              //= require_tree .
  </code></pre>
  
  <p>And here are parts of <code>Gemfile.lock</code></p>
  
  <pre><code>    jquery-datatables-rails (3.3.0)
        actionpack (&gt;= 3.1)
        jquery-rails
        railties (&gt;= 3.1)
        sass-rails
     ....
         ajax-datatables-rails (0.3.1)
        railties (&gt;= 
  </code></pre>
  
  <p>3.1)</p>
  
  <p>I've searched several SO questions, but none seem to be relevant.</p>
  
  <p>Do you have any ideas on what could cause that and how to solve it?</p>