Blog posts for Ruby, Ruby on rails and Linux.

Go back to all blogs

Enabling assets precompilation with capistrano

Kapil Raj Nakhwa2013-Oct-21
Hi , While deploying rails application with capistrano most of us are still confused about how to properly compile assets. and we try various ways such as changing the settings in the production.rb file, Or manually adding tasks in deploy script to run rake command to compile the assets, upload them to server etc.
But I just found out that there already exists a way to handle  assets inbuilt in capistrano Just add load 'deploy/assets' into the capfile and capistrano should take care of all your problems.

Tags: rails,capistrano,asset pipeline,precompile

Go back to all blogs
Never miss a post on new ruby and rails tips