Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to Automatically Deploy from Bitbucket Repository to my Staging Server with PHPCI?

mkhuramj
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 25, 2015

This question is in reference to Atlassian Documentation: Integrate your build system with Bitbucket Cloud

We have PHP project on our bitbucket repo. Whenever any of our team member commits his participation we manually pull it from our staging server which is an AWS instance to see the effects of what every one has done.

We've decided to use any Continuous Integration tool to automatically deploy the commits instead of we manually pull commits in staging server from our bitbucket repo. So we've look for some CI tools and have chosen PHPCI(PHP Continuous Integration) as it is easy to install as compared to some others like Jenkins.

Now, I've installed PHPCI on my AWS instance and set a virtual host for the PHPCI. Almost every thing is ok (But I don't know how to write 'phpci.yml' for my project).

Now I want that whenever I or any of my team member commit into our bitbucket project repo It must get deployed automatically on our staging server.

I don't know how to do so, I've searched and spend much of my time but nothing found helpful.

There is one more thing that to include PHPCI support in my project, it is written in PHPCI documentation, I need to setup a 'phpci.yml' file.

Another related question is what should be in this 'phpci.yml' to automatically deploy the commits on my staging server.

1 answer

0 votes
Timothy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 25, 2015

Now I want that whenever I or any of my team member commit into our bitbucket project repo It must get deployed automatically on our staging server.

Technically, what you're looking for has nothing to do with a SCM tool. While code is versioned in the SCM, what you're looking for falls under the "Continuous Integration" phase (which you've mentioned above).

While i'm no PHP developer and definitely not a PHPCI user, if you spend your time installing and figuring Bamboo or Jenkins, the process that you want is doable.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events