Skip to content

Instantly share code, notes, and snippets.

@MKorostoff
Last active January 4, 2016 04:09
Show Gist options
  • Save MKorostoff/8566545 to your computer and use it in GitHub Desktop.
Save MKorostoff/8566545 to your computer and use it in GitHub Desktop.
<?php
$aliases['golf.local'] = array(
'uri' => 'golfchannel.local',
'root' => '/Users/matt/Sites/golfchannel/docroot',
'path-aliases' => array('%dump-dir' => '/mnt/tmp/golfchannel'),
);
// Site golfchannel, environment dev
$aliases['golf.dev'] = array(
'uri' => 'golfchanneldev.prod.acquia-sites.com',
'env' => 'dev',
'root' => '/var/www/html/golfchannel.dev/docroot',
'remote-host' => 'staging-4666.prod.hosting.acquia.com',
'remote-user' => 'golfchannel',
);
// Site golfchannel, environment test
$aliases['golf.stage'] = array(
'uri' => 'golfchannelstg.prod.acquia-sites.com',
'env' => 'test',
'root' => '/var/www/html/golfchannel.test/docroot',
'remote-host' => 'staging-4666.prod.hosting.acquia.com',
'remote-user' => 'golfchannel',
);
// Site golfchannel, environment prod
$aliases['golf.prod'] = array(
'uri' => 'golfchannel.prod.acquia-sites.com',
'env' => 'prod',
'root' => '/var/www/html/golfchannel.prod/docroot',
'remote-host' => 'web-4655.prod.hosting.acquia.com',
'remote-user' => 'golfchannel',
'path-aliases' => array('%dump-dir' => '/mnt/tmp/golfchannel'),
);
<?php
// 'golf.local' is the alias you'll use at the command line, e.g. `drush @golf.local status`.
// This can be any string without spaces.
$aliases['golf.local'] = array(
//'uri' is whatever vhost you're using locally. E.g. if you develope on "http://gc.localhost/"
//this line would be something like: 'uri' => 'gc.localhost'
'uri' => 'golfchannel.local',
//At the risk of stating the obvious, this should be the actual location of your drupal docroot
'root' => '/Users/matt/Sites/golfchannel/docroot',
//This is only used with `drush sql-sync`. If it doesn't exist on your file system already, you
//should create it.
'path-aliases' => array('%dump-dir' => '/mnt/tmp/golfchannel'),
);
// Again 'golf.dev' can be any string without spaces.
$aliases['golf.dev'] = array(
'uri' => 'golfchanneldev.prod.acquia-sites.com',
'env' => 'dev',
'root' => '/var/www/html/golfchannel.dev/docroot',
'remote-host' => 'staging-4666.prod.hosting.acquia.com',
'remote-user' => 'golfchannel',
);
$aliases['golf.stage'] = array(
'uri' => 'golfchannelstg.prod.acquia-sites.com',
'env' => 'test',
'root' => '/var/www/html/golfchannel.test/docroot',
'remote-host' => 'staging-4666.prod.hosting.acquia.com',
'remote-user' => 'golfchannel',
);
$aliases['golf.prod'] = array(
'uri' => 'golfchannel.prod.acquia-sites.com',
'env' => 'prod',
'root' => '/var/www/html/golfchannel.prod/docroot',
'remote-host' => 'web-4655.prod.hosting.acquia.com',
'remote-user' => 'golfchannel',
// This line allows you to use drush sql-sync to pull the prod database down into your
// local. If you want to pull the dev or stage database, add this same line to the
// definition block for $aliases['golf.dev'] or $aliases['golf.stage'] respectively.
'path-aliases' => array('%dump-dir' => '/mnt/tmp/golfchannel'),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment