Page Title
Body h2. The Situation You have been using Capistrano and the Railsmachine gem. You have your deployment working just the way you like it. Change is scary. h2. The Fix Upgrading to Capistrano 2 is no big deal. The biggest change is the use of namespacing in tasks. Instead of <code>cap deploy_with_migrations</code>, you'll use <code>cap deploy:migrations</code>. Most of the time you will still simply call 'cap deploy' to update your code. *1) Get the latest capistrano and railsmachine gems <pre><code>sudo gem install capistrano railsmachine</code></pre> *Note*: You are no longer required to have mongrel or mongrel_cluster on your development system. *2) Capify your project directory <pre><code>capify .</code></pre> *3) If you have any custom tasks, update them <pre><code>task :after_deploy, :roles => :app do # ... end</code></pre> might become this <pre><code>namespace :custom do task :update, :roles => :app do # ... end end after :deploy,"custom:update"</code></pre> *That's it!* Be sure to commit your changes to Subversion. Run 'cap -T' to view the full list of tasks.
Make page private