by atstsolutions · 16y ago · 0 comments
Capistrano is better for the simple stuff, but once we started doing more we moved to phing.
* calls YUI Compressor to minify css/js * calls a custom script to upload images to the CDN * calls dbdeploy to update our staging database * symlinks the "built" revision to our staging site
When we push a build from staging to production, we run a small bash script that calls Phing which symlinks the desired revision to the production site.
Phing can checkout from SVN, run a mysqldump to snapshot the DB, modify text files (i.e. different .htaccess files for staging/production), run arbitrary shell commands and ping web-APIs for notification etc.
Deploys take between 10 and 30 seconds.