Information for: DEVELOPERS   PARTNERS

Managing your code with other tools

As a website developer in Cloud Platform, be default you have access to three hosted environments for your development and deployment: Development, Staging, and Production. You also have access to a fourth, additional environment: the local development environment on your computer. Having a local development environment allows you to obtain quick feedback regarding changes that you make to your website, all before you commit code to the Cloud Platform code repository.

Using Acquia Dev Desktop for local development

The best way to develop and run your website locally is with Acquia Dev Desktop, Acquia’s free all-in-one Drupal stack, which is integrated with Cloud Platform. You can export websites created in Acquia Dev Desktop into your Cloud Platform subscription or make a local clone of your Cloud Platform websites with a couple of clicks. You can then easily sync the local and Cloud Platform versions of your websites, pushing changes up to the cloud and pulling them down to your local version.

For more information, see the documentation for Dev Desktop or by visiting the Acquia Academy (sign-in required) for the video tutorial on Deploying an Application to Cloud Platform Using Acquia Dev Desktop.

Using Drush when developing locally

If you’re not using Acquia Dev Desktop, when you use Drush during website development, use the following argument with Drush commands to direct Drush to use the settings.php in the [docroot]/sites/localhost directory:

-l http://localhost/example

where http://localhost/example is the address of your website.

As an example, the following Drush command downloads the currently recommended version of the Acquia Lift module, while using the localhost version of settings.php:

drush dl acquia_lift -l http://localhost/example

Developing locally using other tools

If you do not want to use the code management workflow tool included with Cloud Platform, you can use the tool of your choice to manage your Cloud Platform code repositories.

To deploy code across environments using the command line, complete the following steps:

  1. Connect to the target environment using SSH.

  2. In the command prompt window, enter a command similar to the following:

    git clone trunk tags/2011-03-18 git commit -a -m "Created new tag"