Resque + God + Capistrano
Attached is a working config to deploy an application with Capistrano that needs to monitor Resque workers with God.
Web Operations 101 For Developers
This post is not about devops, it's not about lean startups, it's not about web scale, it's...
console-for opens a Rails console remotely on a Capistrano deployment target
We're adding a script console-for to open a remote Rails console with one command. Also have a look...
Dynamically skip Capistrano hooks
When you have a hook in your Capistrano file that dumps your remote database, you might not want it to...
Script to create and copy a production dump to your project root
Soon after having written our shell-for script, we wanted to easily get dumps of our productions machines, too. This...
Script to open an SSH shell to a Capistrano deployment target
We regularly need to connect to the server in order to e.g. access the production console. Guessing the Capistrano deploy...
Putting static content on Cloudfront
We recently decided to put static content for HouseTrip.com to Amazon Cloudfront for a faster user experience. This happens fully...
Speed up Capistrano deployments using a remote cached copy of repository
You can seriously speed up deployments with Capistrano when using a local git repository on the server you are deploying...
Capistrano 2: Which Capistrano hooks to use for events to happen on both "cap deploy" and "cap deploy:migrations"
When deploying an application with "cap deploy" by default [1] you only deploy your code but do not run migrations...
Fix Capistrano with RubyGems 1.6
After updating your RubyGems, you will probably not be able to run Capistrano any more, but receive an error similar...
Deploy and migrate with a single Capistrano command
Note that this sounds good but is not good at all when hooking tasks on cap deploy (see this article...
Show the description of a Capistrano task
In order to bring up a textual description of a Capistrano task you can say cap -e taskname ... where taskname...
Allow a user to run a single command with root privileges
It's that simple to allow one of your Linux users to run a single command as UID 0:
Computational cost of SSL connections
In January this year (2010), Gmail switched to using HTTPS for everything by default. Previously it had been introduced as...
Apply a new callback to existing records
So you added a new callback to your model that (e.g.) caches some data when it is saved. Now you...
Capistrano cowboy deploys
Sometimes, you just need to shoot from the hip…or deploy your local changes without committing them. Put this snippet...
Use Sass without Rails
You don't need a Rails application to use Sass. Even when you're working on a static site you...
Deliver Paperclip attachments to authorized users only
When Paperclip attachments should only be downloadable for selected users, there are three ways to go. The same applies to...
lib/bundler/capistrano.rb at master from carlhuda's bundler - GitHub
Capistrano task for Bundler.
Bundler for Rails 2.3.x
Update RubyGems and Passenger Bundler requires Rubygems >= 1.3.6. Run gem update --system if you have an older version.
Change Paperclip secrets the hard way
So you screwed up and copied Paperclip secrets from one project to another. Here is a semi-automatic, painful way...
Release gem; Deploy gem; Update a gem created with Jeweler
Until May 2011 our gems have been created with Jeweler, which is a helper library to package code into a...
How to fix "Too many authentic authentication failures" with SSH and/or Capistrano
You are getting when connecting via SSH or deploying with Capistrano (which uses SSH): Too many authentication failures for username...
The Exciter - Why You Should Deploy Your Next Application on Ruby 1.9 and a Rant in General
The rubyforge gems model may not be perfect, but damnit people, when there’s a gem update I know that...