Information for: DEVELOPERS   PARTNERS

Managing your code with other tools

As a website developer in Acquia Cloud, 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 Acquia Cloud 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 Acquia Cloud. You can export websites created in Acquia Dev Desktop into your Acquia Cloud subscription or make a local clone of your Acquia Cloud websites with a couple of clicks. You can then easily sync the local and Acquia Cloud 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 Acquia Dev Desktop or by visiting the Acquia Academy (sign-in required) for the video tutorial on Deploying an Application to Acquia Cloud 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 Acquia Cloud, you can use the tool of your choice to manage your Acquia Cloud 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"