Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 6918

Show
Ignore:
Timestamp:
06/01/07 03:04:20 (3 years ago)
Author:
minam
Message:

Make sure all directories exist on each deploy which are necessary for subsequent commands to succeed, since some SCM's won't save empty directories

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tools/capistrano/CHANGELOG

    r6917 r6918  
    11*SVN* 
     2 
     3* Make sure all directories exist on each deploy which are necessary for subsequent commands to succeed, since some SCM's won't save empty directories [Matthew Elder] 
    24 
    35* Add :default_environment variable, which is applied to every command 
  • tools/capistrano/lib/capistrano/recipes/deploy.rb

    r6702 r6918  
    148148    run "chmod -R g+w #{release_path}" if fetch(:group_writable, true) 
    149149 
     150    # mkdir -p is making sure that the directories are there for some SCM's that don't 
     151    # save empty folders 
    150152    run <<-CMD 
    151153      rm -rf #{release_path}/log #{release_path}/public/system #{release_path}/tmp/pids && 
     154      mkdir -p #{release_path}/public && 
     155      mkdir -p #{release_path}/tmp && 
    152156      ln -s #{shared_path}/log #{release_path}/log && 
    153157      ln -s #{shared_path}/system #{release_path}/public/system &&