Johan Bruning asked me to share the capistrano configuration I’m using for ChiliProject. This is the exact version I’m using to deploy Little Stream Software’s ChiliProject. Download this file require "bundler/capistrano" set :application, "chiliproject" set :repository, "git@projects.littlestreamsoftware.app.git" set :scm, :git set :git_enable_submodules,1 # fast_remote_cache is better but requires a plugin set :deploy_via, :remote_cache …
Tag: capistrano
Deploy WordPress Automatically with Capistrano
I volunteered to help my wife convert her aging website to WordPress. In a past life I used to be a WordPress developer (*) and during that time I worked with several WordPress experts and picked up a few best practices. One practice I learned was to deploy WordPress from version control (subversion) so when …
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 += …