getting_started.txt

Path: doco/getting_started.txt
Last Update: Thu Aug 14 12:24:20 -0600 2008

Quick Start for a 1-Server Solution:

Setup

  • Create a deploy file, usually in "config/deploy.rb":
      set :application, "project"
      set :domain, "example.com"
      set :deploy_to, "/path/to/install"
      set :repository, 'http://svn.example.com/project/branches/stable/'
    

This defaults to using ‘svn export’ from repository, and a single server for app, db, and www. If you need to tweak these things, refer to the variable documentation.

  • Add the following to your Rakefile:
      begin
        require 'vlad'
        Vlad.load
      rescue LoadError
        # do nothing
      end
    

Vlad.load has a lot of flexibility. See the rdoc for full information.

You don‘t need the begin/rescue/end block if you ensure that Vlad is installed on all your servers. To be lazy, you can install vlad via:

    % rake vlad:invoke COMMAND='sudo gem install vlad -y'

Initial Launch

  • Run rake vlad:setup vlad:update vlad:migrate vlad:start

Subsequent Updates:

  • rake vlad:update vlad:migrate vlad:start

Each step may be run separately.

[Validate]