NeoArch

February 15, 2008

cap -A seems to be deprecated

Filed under: Capistrano — Jason @ 11:04 am

This is just a FWIW in regards to Capistrano. Capistrano is a piece of software (a Ruby Gem, to be more specific) that I use to automatically deploy applications to web servers. I recently upgraded to version 2.1.0.

Previously, to set up an application under Capistrano, I would run the command cap -A .

That period at the end is part of the code.

In the new version of Capistrano, that seems to be deprecated. You now have to run capify .

So, now you know, and now I have a way to remember it.

July 13, 2007

bash: cap: command not found

Filed under: Capistrano, Linux, Ubuntu — Jason @ 7:13 pm

This post is just an FYI for those trying to use Capistrano on Ubuntu Feisty and running into the same problem I had. I had trouble finding specific information on the topic, thus this post.

I recently tried to use Cap on Ubuntu, and it would not work. I already had ruby and gems installed, having installed them using apt-get. I installed capistrano using the gem install capistrano. I could run gem list and capistrano was installed. All of my other gems worked fine.

When I checked the status of Capistrano using cap -h, I go the error bash: cap: command not found. After doing some searching, I found out how to fix it. Open ~/.bashrc using your favorite text editor. At the end of the file, add these lines:

#The following sets the path for Capistrano
export PATH=$PATH:/var/lib/gems/1.8/bin

Save the file and reboot. Capistrano should work now.

Blog at WordPress.com.