Skip to content

Instantly share code, notes, and snippets.

@shrop
Created February 3, 2011 14:46
Show Gist options
  • Save shrop/809555 to your computer and use it in GitHub Desktop.
Save shrop/809555 to your computer and use it in GitHub Desktop.
Example aliases.drushrc.php file
<?php
// site.com aliases
$aliases['dev'] = array(
'uri' => 'dev.site.com',
'root' => '/var/www/dev',
);
$aliases['test'] = array(
'uri' => 'test.site.com',
'root' => '/var/www/test',
'remote-host' => 'test.site.com',
'remote-user' => 'username',
'db-url' => 'mysqli://username:password@localhost/sitedb',
'path-aliases' => array(
'%files' => 'sites/default/files',
'%dump' => '/tmp/drushtmp/backup.sql', // Arbitrary location for temp files
),
);
$aliases['prod'] = array(
'uri' => 'prod.site.com',
'root' => '/var/www/prod',
'remote-host' => 'prod.site.com',
'remote-user' => 'username',
'db-url' => 'mysqli://username:password@localhost/sitedb',
'path-aliases' => array(
'%files' => 'sites/default/files',
'%dump' => '/tmp/drushtmp/backup.sql', // Arbitrary location for temp files
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment