Jump to content

The ultimate community for Ruby on Rails developers.


Should Capistrano automatically compile assets on deploy?

  • Please log in to reply
No replies to this topic

#1 b2tech



  • Members
  • 6 posts

Posted 16 November 2016 - 01:54 PM



I've been setting up a Capistrano deployment and it works fine for the most part. But I must have something weird going on with my assets.


I was under the impression that if you include 'capistrano/rails' in your Capfile deployments automatically precompile assets.


Whenever deploying it seems assets are completely ignored.


public/assets automatically gets symlinked to /var/www/app/shared/public/assets


But the only way to get the assets to show up is if I manually run the precompile on the production server.


Example of Capifile, deploy/production.rb and deploy.rb...



So do I need to add a task to manaully run the precompile or should Capistrano be doing it?


In addition it seems like cap production deploy:restart and cap production deploy:compile_assets do nothing.... They complete without error (rather quickly...)


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users