Capistrano – deploy to specific revision (= tag, branch, hash)

To deploy something other than the HEAD, you must use the -s option.

Below are examples for git.

cap -s branch=my_branch deploy

cap -s tag=my_tag deploy

bundle_fu for JS/CSS concatenation/minimisation

One of the ‘best practices’ to speedup your site (suggested also by YSlow) is to minify/compress/concatenate in one file the JS and CSS files.

Rails 2.0 has a new feature for accomplishing this, as shown here.

However, Rails does not provide JS compression. The bundle_fu plugin comes in handy for this, autocompressing the JS files.
Continue reading