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

Make update_code and symlink a macro task under the name "update" for easy of deploy to servers that does not run fcgis [DHH]

git-svn-id: http://svn.rubyonrails.org/rails/tools/capistrano@4095 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2006-03-29 00:07:54 +00:00
parent ae697d52da
commit a8ec14118c
2 changed files with 13 additions and 5 deletions

View file

@ -1,5 +1,7 @@
*SVN*
* Make update_code and symlink a macro task under the name "update" for easy of deploy to servers that does not run fcgis [DHH]
* Changed setup, update_code, rollback_code, and symlink to work on all servers instead of only those in the :app, :web, and :db roles. A server can opt out of being part of the release deployment by setting :no_release => true [DHH]
* Added support for :except on task declarations as the opposite of :only [DHH]. Example:

View file

@ -109,6 +109,16 @@ task :restart, :roles => :app do
send(run_method, "#{current_path}/script/process/reaper")
end
desc <<-DESC
Updates the code and fixes the symlink under a transaction
DESC
task :update do
transaction do
update_code
symlink
end
end
desc <<-DESC
Run the migrate rake task. By default, it runs this in the version of the app
indicated by the 'current' symlink. (This means you should not invoke this task
@ -137,11 +147,7 @@ A macro-task that updates the code, fixes the symlink, and restarts the
application servers.
DESC
task :deploy do
transaction do
update_code
symlink
end
update
restart
end