1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

Symlink and setup for shared/pids to tmp/pids [DHH]

git-svn-id: http://svn.rubyonrails.org/rails/tools/capistrano@4295 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2006-04-28 00:07:19 +00:00
parent ccbe1a30d7
commit a545f723b2
2 changed files with 6 additions and 2 deletions

View file

@ -1,5 +1,7 @@
*SVN*
* Symlink and setup for shared/pids to tmp/pids [DHH]
* Fix some incorrect usage text (closes #4507) [gerry_shaw@yahoo.com]
* Added Actor#stream method that makes it easy to create cross-server streams [DHH]. Example:

View file

@ -38,7 +38,8 @@ desc "Set up the expected application directory structure on all boxes"
task :setup, :except => { :no_release => true } do
run <<-CMD
mkdir -p -m 775 #{releases_path} #{shared_path}/system &&
mkdir -p -m 777 #{shared_path}/log
mkdir -p -m 777 #{shared_path}/log &&
mkdir -p -m 777 #{shared_path}/pids
CMD
end
@ -70,7 +71,8 @@ task :update_code, :except => { :no_release => true } do
source.checkout(self)
run <<-CMD
rm -rf #{release_path}/log #{release_path}/public/system &&
rm -rf #{release_path}/log #{release_path}/tmp/pids #{release_path}/public/system &&
ln -nfs #{shared_path}/pids #{release_path}/tmp/pids &&
ln -nfs #{shared_path}/log #{release_path}/log &&
ln -nfs #{shared_path}/system #{release_path}/public/system
CMD