-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.aliases.drushrc.php
51 lines (48 loc) · 1.52 KB
/
example.aliases.drushrc.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
$aliases['remote.dev'] = array (
'uri' => 'example.tld',
'remote-user' => 'example',
'remote-host' => 'example.tld',
'root' => '/example/path/',
'path-aliases' => array(
'%files' => 'sites/example/files',
'%theme' => 'sites/example/themes/example',
'%dump-dir' => '/tmp',
'%dump' => '/tmp/example-' . date('Ymdhis') . '.sql',
),
);
$local = '/example/path';
$aliases['local.dev'] = array(
'uri' => 'example.dev',
'root' => $local . '/example/path',
'db-url' => 'mysql://user:password@localhost/database',
'path-aliases' => array(
'%dump-dir' => $local . '/dumps',
'%dump' => $local . '/dumps/example-' . date('Ymdhis') . '.sql',
'%files' => $local . '/example/path/sites/example/files',
'%theme' => $local . '/example/path/sites/example/themes/example',
),
'command-specific' => array(
'sql-sync' => array(
'no-cache' => TRUE,
'structure-tables-list' => array('cache', 'cache_filter', 'cache_menu', 'cache_page', 'history', 'sessions', 'watchdog'),
),
'rsync' => array(
'exclude-paths' => 'attachments:audio:dumps:movies:',
),
),
'target-command-specific' => array(
'sql-sync' => array(
'enable' => array('stage_file_proxy', 'devel', 'views_ui'),
'disable' => array('securelogin', 'securepages', 'update'),
'variables' => array(
'preprocess_css' => 0,
'preprocess_js' => 0,
'cache' => 0,
'block_cache' => 0,
'page_compression' => 0,
'maintenance_mode' => 0,
),
),
),
);