2013年4月11日星期四

Lukasz Kujawa: Deploying PHP applications with Phing


Lukasz Kujawa has a new post to his site introducing you to deployment of your web-based PHP applications using the Phing build tool.



How many steps are required to deploy your software? Some people say it shouldn't be more than one. I'm little bit more relaxed about it so I would say two steps are still fine. If it takes more than two then most likely you need a build script. [...] Phing is a PHP project build system or build tool based on ​Apache Ant. You can do anything with it that you could do with a traditional build system like GNU make. It use simple XML build files and extensible PHP "task" classes.


He shows how to get it installed via Composer and how to create a simple "build.xml" file with a few targets inside. He shows how to use the "build.properties" configuration file and how to set them from the command line if needed. He also includes details on doing database migrations using the "dbdeploy" tasks.


Link: http://systemsarchitect.net/deploying-php-applications-with-phing

没有评论:

发表评论