Skip to main content

An official website of the City of Austin.

Application Development


CitySpace is the City of Austin employee intranet. It uses the Drupal 8 CMS and is deployed on Acquia Cloud using a Lightning distribution.

Quick Start

1. Set up your Acquia Cloud account

  1. Request an invitation to the CitySpace project on Acquia Cloud

  2. Copy your SSH public key and add it to your Acquia Cloud account $ pbcopy < ~/.ssh/

  3. Confirm the SSH key is configured (you may have to wait several minutes for your key to propagate)

$ ssh

Your Hardware Enablement Stack (HWE) is supported until April 2017.

Welcome to Acquia Cloud. For information about shell access on this
server, please see:

Usage may be monitored and audited.


# Exit the shell

austin1@staging-16599:/mnt/gfs/home/austin1$ exit
Connection to closed.Clone the Github repository
  1. Request a Drupal Admin account on the Acquia server and follow the invitation instructions. This step must be completed before you download the database and upload it to Dev Desktop

2. Clone the repository

$ git clone

3. Add Acquia as a remote

$ cd cityspace/
$ git remote add acquia

4. Install and configure local environment

  1. Install dependencies We require several gems for CSS management. Use bundler to install them.

    # If you don't have bundler yet, install it
    $ gem install bundler
    # Once bundler is installed:
    $ cd docroot/themes/coa_intranet
    $ bundle install
  2. Download and install Dev Desktop (“DD”) from

    1. Set “Desktop sites folder” to wherever you save your local projects
    2. After installation, deselect “Launch Acquia Dev Desktop” and click “Finish”.
    3. Note that if you have an older version of Drush installed (for example, if you installed it as part of our work on the Drupal 7 you might need to unlink that older version of drush for this project.
  3. Download the drush aliases file from Google Drive and move it to the ~/.drush/ directory.

    $ mv ~/PATH/TO/DOWNLOADED/austin1.aliases.drushrc.php ~/.drush/
  4. Download the Acquia Cloud database to your Desktop.

    $ drush sql-dump > ~/Desktop/local.sql

    You can specify a different destination path - The important thing is to download it outside of your project directory so that it does not get added to the git repository.

  5. Launch DevDesktop and select “Start with an existing Drupal site located on my computer”.

    1. Set the “Local codebase folder” to the docroot/ directory in the CitySpace project.
    2. Set the “Local site name” to “austin1”.
    3. Under the database dropdown select “Start with MySQL database dump file” and upload the local.sql file you downloaded earlier.
  6. Ensure Dev Desktop is running (green lights next to “Apache” and “MySQL”) and click on the “Local site” link to ensure your local server can serve the homepage.

  7. Copy docroot/sites/cofa.settings.local.php to docroot/sites/settings.local.php

  8. Sign In using the same credentials you established for your Drupal Admin account.


Due to some tech and resourcing constraints, CitySpace is not configured for continuous integration. Supporing CI would require an additional layer of Drupal + Acquia configuration that we decided was not worth it during early development stages. In the future, however, this might be re-visited with our Acquia Technical Account Manager.


$ git checkout master
$ git pull
$ git push acquia master

# Run any drush scripts as necessary:
# (Must be in docroot/)
$ cd docroot/

# Apply updates to config database from yml files
$ drush config-import active

# Apply any pending database and entity schema updates
$ drush updb --entity-updates

# Clear cache
$ drush cr


The deployment process is similar to Prod but with a couple of exceptions.


Useful Drush commands


# Pull production database to test:
$ drush sql-sync -vv @austin1.test

# Pull production database to local:
$ drush sql-sync -vv @loc.austin1


Pull production files to test via Acquia

# Pull production files to local:
$ drush rsync sites/default/


Apply updates to config database from yml files
$ drush config-import active

# Apply any pending database and entity schema updates
$ drush updb --entity-updates

# Clear cache
$ drush cr


# Enables downloaded module if found, otherwise prompts to allow download of the latest recommended version & dependencies
$ drush en [module]

# Uninstall module
$ drush pmu [module]


Follow the workflow. Do your work in a feature branch, open a PR for review by the team, and make sure your commit history is clean and deliberate before considering your branch ready for merge.