Skip to content

Instantly share code, notes, and snippets.

@mirzu
Created May 31, 2012 15:31
Show Gist options
  • Save mirzu/2844183 to your computer and use it in GitHub Desktop.
Save mirzu/2844183 to your computer and use it in GitHub Desktop.
alias file
<?php
// put the below in a file in ~/.drush/slc.alaises.drushrc.php
// allows commands like
// drush sql-sync @stage @mirzu
// -- to move the staging db to your sandbox
// and commands like
// drush rsync @stage @mirzu
// -- to move the files directory from staging to your sandbox
// with a couple of modifications it works with you local box as well.
<?php
$aliases['local'] = array(
'root' => '/home/mirzu/slc/www',
'uri' => 'local.slc'
);
$aliases['webchefs'] = array(
'remote-host' => 'webchefs.org',
'remote-user' => 'mirzu',
);
$aliases['stage'] = array(
'uri' => 'slc.webchefs.org',
'root' => '/var/www/vhosts/slc.com/www',
'target-command-specific' => array (
'sql-sync' => array (
'no-cache' => TRUE,
),
),
);
$aliases['mirzu'] = array(
'uri' => 'mirzu.slc.webchefs.org',
'root' => '/home/mirzu/www/slc',
'target-command-specific' => array (
'sql-sync' => array (
'no-cache' => TRUE,
),
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment