Skip to content

Instantly share code, notes, and snippets.

@esolitos
Last active January 6, 2017 11:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esolitos/fc6b459e3380151da7e4ffbb46f5ddd1 to your computer and use it in GitHub Desktop.
Save esolitos/fc6b459e3380151da7e4ffbb46f5ddd1 to your computer and use it in GitHub Desktop.
Drupal 7 with Composer Manager example of settings and deploy script for Wodby.
<?php
# [...] All your config
/* Composer Manager configuration */
$conf['composer_manager_vendor_dir'] = realpath(DRUPAL_ROOT .'/../vendor');
$conf['composer_manager_file_dir'] = realpath(DRUPAL_ROOT .'/..');
# [...] more stuff
pipeline:
- name: Install Composer dependencies
type: command
command: composer -q --no-interaction install
directory: $WODBY_APP_DOCROOT/../
only_if: test -f composer.lock
- name: Run db updates
type: command
command: drush -q -y updb
directory: $WODBY_APP_DOCROOT
- name: Clear all caches
type: command
command: drush -q -y cc all
directory: $WODBY_APP_DOCROOT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment