Skip to content

Instantly share code, notes, and snippets.

@taiebb
Last active October 21, 2016 11:42
Show Gist options
  • Save taiebb/3e83c4fa8a41c516bfce3b2022f9a8ab to your computer and use it in GitHub Desktop.
Save taiebb/3e83c4fa8a41c516bfce3b2022f9a8ab to your computer and use it in GitHub Desktop.
Drush aliases
<?php
$aliases['stable'] = array(
'uri' => 'stable.dkan',
'root' => '/var/www/stable.dkan/docroot',
'db-url' => 'mysql://root:Sciawaker-n0wCit@localhost:3306/prod_dkan',
'remote-host' => '192.168.57.100',
'remote-user' => 'dkan',
'path-aliases' => array(
'%dump-dir' => '/home/dkan/db',
'%files' => 'sites/default/files'
),
'databases' =>
array (
'default' =>
array (
'default' =>
array (
'driver' => 'mysql',
'username' => 'root',
'password' => 'Sciawaker-n0wCit',
'port' => '3306',
'host' => 'localhost',
'database' => 'prod_dkan',
),
),
),
'variables' => array(
'site_name' => 'dkan',
),
'command-specific' => array (
'sql-sync' => array (
'no-cache' => TRUE,
),
),
# This shell alias will run `mycommand` when executed via `drush @stage site-specific-alias`
'shell-aliases' => array (
'site-specific-alias' => '!mycommand',
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment