Use this gem to deploy Zend Framework projects with Capistrano. It will adapt Capistrano configuration in order to be used with ZF project structure.
Fabio Napoleoni
gem "zend-framework-deploy", "~> 0.1.0"