Skip to content

Instantly share code, notes, and snippets.

@typhonius
Last active April 28, 2016 21:18
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save typhonius/6420061 to your computer and use it in GitHub Desktop.
Save typhonius/6420061 to your computer and use it in GitHub Desktop.
<?php
$options['shell-aliases']['offline'] = 'variable-set -y --always-set maintenance_mode 1';
$options['shell-aliases']['online'] = 'variable-delete -y --exact maintenance_mode';
$options['shell-aliases']['sync-dbs'] = '!drush sql-sync --structure-tables-key=common --no-cache {{#prod}} {{@target}}';
$options['shell-aliases']['sync-files'] = '!drush rsync {{#prod}}:%files {{@target}}:%files';
$options['structure-tables']['common'] = array('cache', 'cache_filter', 'cache_menu', 'cache_page', 'history', 'sessions', 'watchdog');
$options['shell-aliases']['sync-fsdb'] = '!drush sql-sync {{#prod}} {{@target}} && drush rsync {{#prod}}:%files {{@target}}:%files';
$options['shell-aliases']['pull'] = '!git pull';
$options['shell-aliases']['pulldb'] = '!git pull && drush updatedb';
$options['shell-aliases']['unin'] = 'pm-disable -y && pm-uninstall -y';
$options['shell-aliases']['noncore'] = 'pm-list --no-core';
$options['shell-aliases']['wipe'] = 'cache-clear all';
$options['shell-aliases']['unsuck'] = 'pm-disable -y overlay,dashboard';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment