Search code examples
phprubysymfony1capistranocapifony

Is there any way to overwrite the cap deploy:setup task?


Where can I find the capifony/capistrano tasks in order to overwrite them.

I want when I run cap deploy:setup to modify it to add an extra symlink to accomodate my server structure. Is that possible? Or at least to write a new task to do this.


Solution

  • List of cap tasks : http://capitate.rubyforge.org/recipes/deploy.html

    To override tasks do something like that :

     namespace :deploy do
      task :start do ; end
      task :stop do ; end
      task :restart do ; end
      task :update_code do ; end #override this task to prevent capistrano to upload on servers
      task :symlink do ; end #don't create the current symlink to the last release
     end