PHP Deployment with Deployer to AWS via Bitbucket Pipeline

Configure Bitbucket Repository and Remote Host

Configure Deployer

Folder structure after successful deployment
1)apt-get update && apt-get install -y unzip openssh-client rsync            2)curl -sS https://getcomposer.org/installer | php -- --install-
dir=/usr/local/bin --filename=composer
3)composer global require deployer/deployer
4)composer global require deployer/recipes --dev
1) composer install                     
2) vendor/bin/phpunit
3) /root/.composer/vendor/bin/dep deploy -vvv test ## Remove -vvv after your successful deployment
caches:
- composer
Default PHP Container and no cache
composer dependencies cached
Customized Docker Container and cache dependencies

WE LOVE DOCKER, HAPPY CODING!

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store