
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, however, are typically not managed with Composer, so a different approach is needed.
The last version of Drush to support Drupal 7 is Drush 8. It is distributed as a single self-contained drush.phar file. The process is to download a copy of Drush into your repository and symlink it into the system path during your build so that the drush command runs on the command line without specifying a path.
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.
Download the latest Drush 8 release from the Drush releases page into the root of your Drupal 7 repository and make it executable:
Commit the file to your repository so that Drush is included as part of your application:
With drush.phar committed to your repository, add a build step to your .probo.yaml file that symlinks it to /usr/local/bin/drush. This makes the drush command available without a path to any subsequent build steps, including the Drupal plugin. This step must come before your Drupal plugin step.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | assets: - dev.sql.gz steps: - name: Install Drush 8 plugin: Script script: | ln -s $SRC_DIR/drush.phar /usr/local/bin/drush - name: Provision Drupal 7 Site plugin: Drupal drupalVersion: 7 database: dev.sql.gz databaseGzipped: true clearCaches: true |
If you prefer not to commit drush.phar to your repository, you can download it during the build instead. Replace the symlink line in the script above with:
1 2 | wget -q -O /usr/local/bin/drush https://github.com/drush-ops/drush/releases/download/8.5.0/drush.phar chmod +x /usr/local/bin/drush |
Keep in mind this downloads Drush on every build, so committing it to your repository makes your builds faster and more reliable.
Be sure to set drupalVersion: 7 in your Drupal plugin step so that the correct Drush commands are run for your version of Drupal, such as drush cc all for clearing caches.

When you sign up for a Probo.CI registration code, you will get a two week trial of the plan of your choosing. For more information on how to get started, click here .
LEARN MORE ABOUT PROBO.CI'S PRICING