Skip to content

Instantly share code, notes, and snippets.

@EvanLovely
Created September 25, 2013 02:01
Show Gist options
  • Save EvanLovely/6694252 to your computer and use it in GitHub Desktop.
Save EvanLovely/6694252 to your computer and use it in GitHub Desktop.
Drush alias for a server that doesn't have drush installed. Helps considerably when pushing and pulling databases and files for a Drupal site as it uses mysqldump, ssh, and rsync instead of drush (which is usually required for parsing the settings.php file and finding out what is set below.
$aliases['prod'] = array(
'root' => '',
'uri' => '',
'remote-user' => '',
'remote-host' => '',
'ssh-options' => '-o PasswordAuthentication=yes',
'path-aliases' => array(
'%files' => 'sites/default/files',
),
'databases' =>
array(
'default' =>
array(
'default' =>
array(
'database' => '',
'username' => '',
'password' => '',
'host' => 'localhost',
'port' => '',
'driver' => 'mysql',
'prefix' => '',
),
),
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment