Assets Precompile Capistrano 3.4
<p>I am a newbie in deploying,</p>

<p>Using capistrano 3.4 for deploying</p>

<p>I am trying to deploy for staging environment, using this task for precompile</p>

<pre><code>desc "assets precompile"
  task :precompile do
    on roles(:rails) do
      execute "cd #{release_path} &amp;&amp; bundle exec rake assets:precompile RAILS_ENV=#{fetch(:stage)} "
    end
  end
  after :publishing, :precompile
</code></pre>

<p>But precompile is getting freeze not moving, if i uncomment these above task and deploy then it gets deployed but assets are not loading.</p>

<p>Please help how to proceed</p>