Created
February 3, 2011 14:46
-
-
Save shrop/809555 to your computer and use it in GitHub Desktop.
Example aliases.drushrc.php file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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