Notes on Java, Solaris, PHP, LDAP…

June 20, 2008

Notes on Capistrano

Filed under: Java — negev @ 6:53 pm
Tags: ,

How to use capistrano to invoke a command remotely:
cap -f deploy.rbĀ  invoke COMMAND=ls

Since Capistrano 2 it kind of required ‘Capfile’ in the folder where I run capistrano. deploy.rb can be under ‘deploy’ folder but not in the same folder as Capfile. Capfile then contains:
load ‘deploy’ if respond_to?(:namespace) # cap2 differentiator
load ‘deploy/deploy’

How to make capistrano deploy a chosen revision (thanks to Jamis Buck):
cap -S revision=1234 deploy

Capistrano on Suse SLES 10: Latest version of Ruby for SLES 10 is version 1.8.4 – from
http://demeter.uni-regensburg.de/SLES10-SDK-x86/suse/i586/ But the newest capistrano (2.4.0) doesn’t deploy correctly in ruby 1.8.4 – it deploys older revision (24) from Subversion rather the newest revision (HEAD).

Getting current versions of a gem package

Filed under: Java — negev @ 5:47 pm
Tags:

To get a list of available packages of a chosen gem (package for ruby language), use:

gem list -r package-name

Blog at WordPress.com.