The default deploy is for Rails apps, so it tries to symlink and fix permissions on the standard rails directories. If you aren't deploying a rails app, you'll want to override the deploy:finalize_update task, either to do nothing, or to do post-checkout tweaks as necessary:

  deploy.task :finalize_update do
    # nothing?
  end

- Jamis

On Mar 9, 2008, at 7:14 PM, [EMAIL PROTECTED] wrote:


I setup new capistrano using "gem install". I have this simple script
that I wrote. Its seems to valid but then i run a deploy i get all
these wierd errors about directories and things that i dont even have
in my configs. Where are they comming from. (reaper, public images,
scripts proccess). Looks like its getting these from some default
deploy  configs that i dont know about. All all my scripts need to to
is deploy from svn.

Cap deploy output:
[dev:~/cap/config] deploy$ cap deploy
 * executing `deploy'
 * executing `deploy:update'
** transaction: start
 * executing `deploy:update_code'
 * executing "/opt/csw/bin/svn checkout -q  -r1 svn+ssh://
[EMAIL PROTECTED]/var/repos/stratplace /var/www/html/
_stratplace.com/test/releases/20080310005233 && (echo 1 > /var/www/
html/_stratplace.com/test/releases/20080310005233/REVISION)"
   servers: ["8.12.43.95"]
   [8.12.43.95] executing command
   command finished
 * executing `deploy:finalize_update'
 * executing "chmod -R g+w /var/www/html/_stratplace.com/test/
releases/20080310005233"
   servers: ["8.12.43.95"]
   [8.12.43.95] executing command
   command finished
 * executing "rm -rf /var/www/html/_stratplace.com/test/releases/
20080310005233/log /var/www/html/_stratplace.com/test/releases/
20080310005233/public/system /var/www/html/_stratplace.com/test/
releases/20080310005233/tmp/pids &&\n      mkdir -p /var/www/html/
_stratplace.com/test/releases/20080310005233/public &&\n      mkdir -
p /var/www/html/_stratplace.com/test/releases/20080310005233/tmp &&
\n      ln -s /var/www/html/_stratplace.com/test/shared/log /var/www/
html/_stratplace.com/test/releases/20080310005233/log &&\n ln - s /
var/www/html/_stratplace.com/test/shared/system /var/www/html/
_stratplace.com/test/releases/20080310005233/public/system &&\n
ln -s /var/www/html/_stratplace.com/test/shared/pids /var/www/html/
_stratplace.com/test/releases/20080310005233/tmp/pids"
   servers: ["8.12.43.95"]
   [8.12.43.95] executing command
   command finished
 * executing "find /var/www/html/_stratplace.com/test/releases/
20080310005233/public/images /var/www/html/_stratplace.com/test/
releases/20080310005233/public/stylesheets /var/www/html/
_stratplace.com/test/releases/20080310005233/public/javascripts -exec
touch -t 200803100052.36 {} ';'; true"
   servers: ["8.12.43.95"]
   [8.12.43.95] executing command
*** [err :: 8.12.43.95] find: stat() error /var/www/html/
_stratplace.com/test/releases/20080310005233/public/images: No such
file or directory
*** [err :: 8.12.43.95] find: stat() error /var/www/html/
_stratplace.com/test/releases/20080310005233/public/stylesheets: No
such file or directory
*** [err :: 8.12.43.95] find: stat() error /var/www/html/
_stratplace.com/test/releases/20080310005233/public/javascripts: No
such file or directory
   command finished
 * executing `deploy:symlink'
 * executing "rm -f /var/www/html/_stratplace.com/test/current && ln -
s /var/www/html/_stratplace.com/test/releases/20080310005233 /var/www/
html/_stratplace.com/test/current"
   servers: ["8.12.43.95"]
   [8.12.43.95] executing command
   command finished
** transaction: commit
 * executing `deploy:restart'
 * executing "sudo -p 'sudo password: ' -u app /var/www/html/
_stratplace.com/test/current/script/process/reaper"
   servers: ["8.12.43.95"]
   [8.12.43.95] executing command
*** [err :: 8.12.43.95] sh: sudo: not found
   command finished
command "sudo -p 'sudo password: ' -u app /var/www/html/
_stratplace.com/test/current/script/process/reaper" failed on
8.12.43.95
[dev:~/cap/config] deploy$


cap script:
set :application, "test"
set :user, "deploy"
set :repository,  "svn+ssh://[EMAIL PROTECTED]/var/repos/
stratplace"
set :deploy_to, "/var/www/html/_stratplace.com/#{application}"
set :password, "bla"
set :scm_command,  "/opt/csw/bin/svn"
set :local_scm_command, :default

# If you aren't deploying to /u/apps/#{application} on the target
# servers (which is the default), you can specify the actual location
# via the :deploy_to variable:

# If you aren't using Subversion to manage your source code, specify
# your SCM below:
# set :scm, :subversion



role :app, "4.2.43.12"
#role :app, "your app-server here"
#role :web, "your web-server here"
#role :db,  "your db-server here", :primary => true
~

--~--~---------~--~----~------------~-------~--~----~
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