Wojciech Sznapka's Blog: Deploying Symfony2 applications with Ant
Note: This article was originally published at PHPDeveloper on 23 April 2012.
When you have plenty of Symfony2 applications and you need to deploy them from time to time, you are probably sick of thinking about every activity you need to do for every deploy. Often people use some build scripts, which are hard to maintain and tends to be unreadable. I wanted to automate it as much as it possible and I've choosen Ant, to help me out.
An example build.xml file is included in the post that shows how to:
- Pull the current code from git
- Install vendor packages
- Fix permissions for the log and cache directories
- Clean up the cache
- Dump/install any additional assets