DEPLOY PHP APPLICATION
USING BITBUCKET PIPELINES
by Dolly Aswin
About Me
• Start Programming in PHP since 2004
• Zend Certified Engineer PHP 5 (2010)
• Zend Framework Certified Engineer (2011)
• Zend Framework Certified Architect (2015)
WHAT IS DEPLOYMENT
THE OLD FASHIONED WAY
OF
DEPLOYMENT
rsync IS AMAZING
But you need CLI to use it
BITBUCKET PIPELINES
Deploying Update By Merging Pull Request
BITBUCKET PIPELINES SETUP
DOCKER
DEPLOYER
Tips
• Project structure will follow deployer layout path
• Listed config files in shared_files
• Listed writeable folders in shared_dirs (cache, logs)
• Run Database Migration when deploying update
• Clear config caches when deploying update
• Branch Permissions
THANKS!
dolly.aswin@gmail.com

https://bitbucket.org/dollyaswin/zend-expressive-api

Deploying PHP Application Using Bitbucket Pipelines