00001 <?php 00002 // $Id: 00003 00004 /** 00005 *@file 00006 * Examples of valid drush_multi statements for a drushrc.php file. 00007 * Use this file to cut down on typing of options and avoid mistakes. 00008 * 00009 * Append (without leading "<?php") or copy this file to drushrc.php. 00010 * drushrc.php should be in one of 00011 * five convenient places, listed below in order of precedence: 00012 * 00013 * 1. Drupal site folder (e.g sites/{default|example.com}/drushrc.php). 00014 * 00015 * 2. Drupal installation root. 00016 * 00017 * 3. In any location, as specified by the --config (-c) option. 00018 * 00019 * 4. User's .drush folder (i.e. ~/.drush/drushrc.php). 00020 * 00021 * 5. System wide configuration folder (e.g. /etc/drush/drushrc.php). 00022 * 00023 * 6. Drush installation folder. 00024 * 00025 * If a configuration file is found in any of the above locations, it 00026 * will be loaded and merged with other configuration files in the 00027 * search list. 00028 * 00029 * IMPORTANT NOTE on configuration file loading: 00030 * 00031 * At its core, drush works by "bootstrapping" the Drupal environment 00032 * in very much the same way that is done during a normal page request 00033 * from the web server, so most drush commands run in the context 00034 * of a fully-initialized website. 00035 * 00036 * Configuration files are loaded in the reverse order they are 00037 * shown above. Configuration files #6 through #3 are loaded immediately; 00038 * the configuration file stored in the Drupal root is loaded 00039 * when Drupal is initialized, and the configuration file stored 00040 * in the site folder is loaded when the site is initialized. 00041 * 00042 * This load order means that in a multi-site environment, the 00043 * configuration file stored in the site folder will only be 00044 * available for commands that operate on that one particular 00045 * site. Additionally, there are some drush commands such as 00046 * pm-download do not bootstrap a drupal environment at all, 00047 * and therefore only have access to configuration files #6 - #3. 00048 * The drush commands 'rsync' and 'sql-sync' are special cases. 00049 * These commands will load the configuration file for the site 00050 * specified by the source parameter; however, they do not 00051 * load the configuration file for the site specified by the 00052 * destination parameter, nor do they load configuration files 00053 * for remote sites. 00054 */ 00055 00056 /** 00057 * (APACHE_RUN_USER) Used to set permissions to the webserver user (multi-site) 00058 * for settings.php during the installation and for the files directory 00059 */ 00060 /** @todo Implement that multi-site works with "apache-user" option from commandline too */ 00061 $options['multi-apache-user'] = 'www-data'; 00062 00063 00064 /** 00065 *(APACHE_RUN_GROUP) Used to set permissions to the webserver group (multi-site) 00066 * for settings.php during the installation and for the files directory 00067 */ 00068 /** @todo Implement that multi-site works with "apache-group" option from commandline too */ 00069 $options['multi-apache-group'] = 'www-data'; 00070 00071 /** Target directory used for writing the result files to (multi-sql-dump) */ 00072 /** @todo Implement that multi-sql-dump works with option "multi-sql-dump-target" */ 00073 /** @todo Rename --target option to something else, target is used by drush itself */ 00074 $options['multi-sql-dump-target'] = '/path/where/to/store/the/sqldumps'; 00075 00076 /** Use bzip2 for the compression of the result files (multi-sql-dump) */ 00077 /** @todo Implement that multi-sql-dump works with option "multi-sql-dump-bzip2" */ 00078 $options['multi-sql-dump-bzip2'] = TRUE; 00079 00080 /** Use datetime strings in result file names (multi-sql-dump) */ 00081 /** @todo Implement that multi-sql-dump works with option "multi-sql-dump-datetime" */ 00082 $options['multi-sql-dump-datetime'] = TRUE; 00083 00084 /** List of optional directories created within a site directory (multi-site) */ 00085 /** @todo Implement that multi-site works with option "multi-site-create-directories */ 00086 $options['multi-site-create-directories'] = 'modules/patched,foo,foobar';