By skipping assets:precompile when assets haven’t changed, I’ve reduced my deployment time from 6 minutes to 9.6 seconds. I’ve been practicing semi-continuous deployments on Chirk HR since I’ve started (where I am deploying to production as soon as code is useful). I’ve been having a problem with the asset pipeline though because the assets:precompile task …
Tag: deployment
Daily Code Reading #20 – Capistrano recipes – deploy
I’m finishing up my code reading of Capistrano‘s recipes with the recipe that is run most often, deploy. The Code and Review deploy 1 2 3 4 5 6 namespace :deploy do task :default do update restart end endnamespace :deploy do task :default do update restart end end The deploy recipe itself is simple and …
Capistrano Deploy Sequence
During my last code reading of Capistrano, I traced the deploy recipe to find out what other recipes it uses. Since overriding and hooking into these recipes are used when you customize your application deploy, I wanted to document them here so I can find it again. deploy |-- deploy:update |---- deploy:update_code |------ Code update …
Daily Code Reading #19 – Capistrano recipes – deploy setup
Today I’m reading through Capistrano‘s deploy:setup recipe. This recipe is used to setup a new server for deployment by creating the directories Capistrano uses and checking permissions. The Code 1 2 3 4 5 6 7 namespace :deploy do desc < { :no_release => true } do dirs = [deploy_to, releases_path, shared_path] dirs += …
Capistrano Variables
Capistrano Variables While reading through Capistrano’s code I’ve come across many the variables used to configure deploy.rb. So I don’t forget them when I need them, I’ll document them here: application – required repository – required scm – defaults to :subversion deploy_via – defaults to :checkout revision – defaults to the latest head version rails_env …