mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
Fixed the default recipe to work with setups that haven't yet gone pids [DHH]
git-svn-id: http://svn.rubyonrails.org/rails/tools/capistrano@4367 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
a545f723b2
commit
bb7d7ac4b3
2 changed files with 9 additions and 2 deletions
|
@ -1,5 +1,7 @@
|
|||
*SVN*
|
||||
|
||||
* Fixed the default recipe to work with setups that haven't yet gone pids [DHH]
|
||||
|
||||
* Symlink and setup for shared/pids to tmp/pids [DHH]
|
||||
|
||||
* Fix some incorrect usage text (closes #4507) [gerry_shaw@yahoo.com]
|
||||
|
|
|
@ -71,11 +71,16 @@ task :update_code, :except => { :no_release => true } do
|
|||
source.checkout(self)
|
||||
|
||||
run <<-CMD
|
||||
rm -rf #{release_path}/log #{release_path}/tmp/pids #{release_path}/public/system &&
|
||||
ln -nfs #{shared_path}/pids #{release_path}/tmp/pids &&
|
||||
rm -rf #{release_path}/log #{release_path}/public/system &&
|
||||
ln -nfs #{shared_path}/log #{release_path}/log &&
|
||||
ln -nfs #{shared_path}/system #{release_path}/public/system
|
||||
CMD
|
||||
|
||||
run <<-CMD
|
||||
test -d #{shared_path}/pids &&
|
||||
rm -rf #{release_path}/tmp/pids &&
|
||||
ln -nfs #{shared_path}/pids #{release_path}/tmp/pids; true
|
||||
CMD
|
||||
end
|
||||
|
||||
desc <<-DESC
|
||||
|
|
Loading…
Reference in a new issue