Yes, deployment to the web machines is how the deployment recipes work. This is because it is easier to just push everything than require you (as the user of capistrano) to tell capistrano what files/ directories should be copied. Naturally, you can (without very much trouble) write your own deployment recipes for capistrano that will customize the process to exactly your needs, but the defaults are generally fine for most people.

- Jamis

On May 23, 2008, at 8:44 AM, Jochen Kaechelin wrote:


My deploy.rb looks like:

-------------------------------------------------
set :application, "project"
set :repository,  "svn://127.0.0.1/Users/bullet/Documents/SUBVERSION/
project"
set :deploy_to,   "/var/www/#{application}"

set :user,     "mongrel"
set :password, "*****"

set :runner,   "mongrel"

set :deploy_via, :copy
default_run_options[:pty] = true
set :scm, :subversion


# Mongrel Cluster
role :app, "10.211.55.6", "10.211.55.7"

# Nginx
role :web, "10.211.55.4"

# MySQL
role :db,  "10.211.55.8", :primary => true
-------------------------------------------------

All these machines are running on a iMac with Parallels.

"cap deploy:setup", "cap:deploy:check", "cap deploy:migrate" and "cap
deploy" are running without any errors
and I can visit the homepage.

But why are the Rails documents copied to the machine running nginx
and mysql?
I thought the applications servers were the home of the Rails documents.

Is this the normal behavior?


Thanx

Jochen

--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to