To make it even better is that it comes with built in support for number of version control systems like Darcs, Subversion, Mercurial and best of all Git. To get started you need to install vlad gem on your machine and on each of servers you wish to deploy your ruby app.
sudo gem install vlad
The variables for deployment are typically setup in config/deploy.rb file just like capistrano. For trival one server deployment all you have to do is set four vaiables in deploy.rb file
set :application, "myblog"
set :domain, "blog.com"
set :deploy_to, "/var/rails/myblog"
set :repository", "http://svn.myserver.com/myblog/trunk"
Also add following lines to Rakefile as well to require vlad gem
Begin
require 'vlad'
Vlad.load
rescue LoadError
#do nothing
end
Just run following commands in this sequence to deploy your application
vlad:setup #run first time only
vlad:update
vlad:migrate #optional
vlad:start
As you might be aware Capistrano is not going to be maintained anymore by Jamis buck and there is lot of active development going on for vlad it should be good idea to give vlad a spin as alternative to capistrano.
No comments:
Post a Comment