Deploying PHP Bitbucket Project

Bitbucket is a web-based hosting service for projects that use either the Mercurial or Git revision control systems. It gives an opportunity to host, manage and share the code online in as many public and private repositories as you want. You can manage your projects with confidence with built-in issue trackers, wikis, code comments, and pull requests.

If you used to work with Bitbucket repositories, follow this instruction to add your PHP project to Jelastic.

Create the Environment

  1. Log into the
    Jelastic Manager
  2. While in Jelastic dashboard, click the Create environment button:

  3. how to deploy app
  4. Pick an application server, specify the cloudelt limits, type your environment name, for example, bitbucket-php, and click Create.

Get the Repository Link

  1. Navigate to Bitbucket official web-site and log in the system.

  2. Click on the desired repository in the Repositories list.

  3. Here you should get the link to your project - just copy it from the following window:

  4. You've got the https:// link of the following kind:

  5. https://{USER_NAME}{USER_NAME}/{PROJECT_NAME}.git

    Delete {USER_NAME}@ part of the link to get such URL:{USER_NAME}/{PROJECT_NAME}.git

  6. Now all is ready for adding your project to the Jelastic cloud.

Add the Project

  1. Click the Add project button next to the application server node in your environment.

  2. In the Add project dialog box choose the Git tab and fill in all required fields: Name of your project, Path (modified link) to your project, Branch, Login and Password of your repository, the name of your Environment and specify Context in which you will deploy your project. Click Apply.

  3. Now your project is succefully uploaded and deployed in your environment.

Update the Project

In case you've performed some changes in your code and want them to be applied to the project in Jelastic cloud, just click Update from GIT button next to the desired context in your environment.

That's all! Open your application and enjoy developing your project with Jelastic.