This file contains hidden or 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
There's a problem that you run into right away: you can't put a command line command, with arguments, | |
into the path to git executable box. | |
So putting something like bash.exe -c "git %*" isn't going to work. I wrote a small shell script that | |
fixes this, for both 32-bit and 64-bit systems. | |
@echo off | |
If %PROCESSOR_ARCHITECTURE% == x86 ( | |
"C:\Windows\sysnative\bash.exe" -c "git %*" | |
) Else ( |
This file contains hidden or 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
api_version: 1 | |
workflows: | |
clone_database: | |
after: | |
- type: webphp | |
description: Enable and disable modules based on values provided by settings.php | |
script: private/scripts/update_modules/update_modules.php |
This file contains hidden or 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 | |
// SNIP REST OF settings.php ABOVE | |
if(defined('PANTHEON_ENVIRONMENT')) { | |
switch(PANTHEON_ENVIRONMENT) { | |
case 'live': | |
$env_settings = dirname(__FILE__) . '/settings.live.php'; | |
break; | |
case 'test': | |
$env_settings = dirname(__FILE__) . '/settings.test.php'; |
This file contains hidden or 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 | |
/** | |
* Enable and disable modules based on settings in $conf['qs_module_settings'] | |
*/ | |
// Without resorting to fixed paths, this is the easiest way to get the data from the settings file and into this script. | |
$module_settings = json_decode(shell_exec("drush vget qs_module_settings --exact --format=json")); | |
$module_list = shell_exec("drush pm-list --status=enabled --pipe 2>&1"); | |
$enabled_modules = explode("\n", $module_list); | |
$module_list = shell_exec("drush pm-list --status=disabled --pipe 2>&1"); |
This file contains hidden or 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 | |
$conf['qs_module_settings']['enabled'] = array( | |
'devel', | |
); | |
$conf['qs_module_settings']['disabled'] = array( | |
'googleanalytics', | |
); |