-
Notifications
You must be signed in to change notification settings - Fork 8
/
kada_devsync.sh
executable file
·42 lines (31 loc) · 1.52 KB
/
kada_devsync.sh
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
# This file will sync local development environment with the dev server
# SQL from the server + rsync.
drush sql-sync @kada.develop @kada.local --structure-tables-key=custom --sanitize --create-db --db-su=root --db-su-pw=somepass
echo 'KADA SQL sync ready.';
# Uncomment lines below for file syncing if stage_file_proxy doesn't work as it should
# drush rsync @kada.develop:%files/ files/
# echo 'KADA RSync ready.';
# Download and enable Stage File Proxy for saving disk space on local environments
#drush @kada.local dl stage_file_proxy -y;
#drush @kada.local en stage_file_proxy -y;
#drush @kada.local variable-set stage_file_proxy_origin "http://www.kada.fi"
# Download Devel
drush @kada.local dl devel -y;
# Download maillog to prevent emails being sent
drush @kada.local dl maillog -y;
# Set maillog default development environment settings
drush @kada.local vset maillog_devel 1;
drush @kada.local vset maillog_log 1;
drush @kada.local vset maillog_send 0;
# Enable Devel and UI modules
drush @kada.local en field_ui admin_menu devel views_ui context_ui feeds_ui rules_admin dblog ds_ui field_ui openlayers_ui --yes;
echo 'Enabled Devel and Views+Context+Feeds+Rules UI modules.';
# Disable google analytics
# drush @kada.local dis googleanalytics --yes;
# echo 'Disabled Google Analytics.';
# Set site email address to [email protected]
drush @kada.local vset site_mail "[email protected]"
# Set imagemagick convert path
# drush @kada.local vset imagemagick_convert "/opt/local/bin/convert"
# Clear caches
drush @kada.local cache-clear all;