Tag Archives: deployment
Capistrano – Deploying a Branch
When deploying from Capistrano, I like to have the following in my ‘deploy.rb’ file: set :scm, "git" set :repository, "git@www.example.com:project.git" set :git_shallow_clone, 1 set :deploy_via, :remote_cache This allows speeds deployments by keeping a versions checked out on the server in … Continue reading
Capistrano – Email on Deployment
It’s a good practice to send a notification to certain people when a new version is deployed. This process can easily be automated in Capistrano. Add the following file to the ‘lib’ directory with the filename ‘cap_mailer.rb’: 1 2 3 … Continue reading
Capistrano – Install Gems Remotely
Capistrano does not have out-of-the-box support for installing gems on your servers. You may not need this if you are packing them, but some of us would like to run the equivalent of ‘rake gems:install’. To do this in capistrano, … Continue reading
Capistrano – Adding Help to Deployments
If you don’t do something everyday, you tend to forget how to do it. The same is with the deployments. To help this, you can easily add a help section to Capistrano in your ‘config/deploy.rb’ file. Here is a sample: … Continue reading
Capistrano – Multiple Environments
Capistrano is designed to deploy your Rails application (yes it can handle others, but more work is required) to production. However, most applications need to be deployed to more than one environment. For example, we deploy to a staging environment … Continue reading
Agile Deployment
Agile methodologies support many parts of the software development life cycle. However, one area that does not seem to get sufficient attention is deployment. I propose the following principles for agile deployment: Repeatable Builds – Devise a system where one … Continue reading
