PHP Script to deploy specific branch from bitbucket to your server.
-
Authentication > Add new ssh key to your project in bitbukcet
-
Download the script to your project.
-
Create a POST service in Bitbukcet from repository settings : add new POST service > enter the URL (http(s)://www.example.php/deployScript.php) (script could be under the root of your project)
-
Try your first commit!
-
Check the logs which are generated under the file deployScript.php.log
Enjoy deployment without using any paid service
for any question email me : eng.ibraheemabukaff@gmail.com