Drush for Drupal 7



Search Results

The Probo Drupal plugin requires Drush to install your Drupal site. For Drupal 8 and higher, Drush is installed as a Composer dependency as described in our Using Drush documentation. Drupal 7 applications are typically not managed with Composer, so Probo takes care of Drush for you.

Drush 8 Is Installed For You

Drush 8 is the last version of Drush to support Drupal 7. When your Drupal plugin step sets drupalVersion: 7, Probo installs Drush 8 globally in the build container before your site is provisioned. There is nothing for you to add to your repository or your .probo.yaml file.

  • You do not need to commit a drush.phar file to your repository.
  • You do not need a build step to download Drush.
  • You do not need to symlink Drush into the system path.

Drush is placed at /usr/local/bin/drush, so the drush command is available without a path to the Drupal plugin, to any later steps in your build, and in the SSH Terminal of the running build.

Drush 8 has several unremediated security issues. These should not negatively impact your Drupal application on Probo but we cannot guarantee it. For more information on Drush 8, see the Drush 8 documentation.

Configuring a Drupal 7 Build

A Drupal 7 build needs only the Drupal plugin step itself:

1
2
3
4
5
6
7
8
9
assets:
  - dev.sql.gz
steps:
  - name: Provision Drupal 7 Site
    plugin: Drupal
    drupalVersion: 7
    database: dev.sql.gz
    databaseGzipped: true
    clearCaches: true

Be sure to set drupalVersion: 7 in your Drupal plugin step. It is what triggers the Drush 8 installation, and it also tells the plugin to run the correct Drush commands for your version of Drupal, such as drush cc all for clearing caches rather than the drush cr used by Drupal 8 and higher.


Get Started with Probo.CI

Want to Try Probo today?
Get Started Fast!.

------

Your first month is on us. When you sign up for a Probo.CI, every new account starts with a full month free on any of our plans. For more information on how to get started, click here.

LEARN MORE ABOUT PROBO.CI'S PRICING