Overrides for devstaging sites » History » Revision 1
Revision 1/4
| Next »
Jon Goldberg, 07/18/2014 05:01 PM
Overrides for dev/staging sites¶
Generally speaking, we should be overriding certain CiviCRM options on dev/staging sites in civicrm.settings.php, so we can copy the database between servers with impunity.
Here's my local CPEHN overrides. You can put these into civicrm.settings.php on line 2, just under .
global $civicrm_setting;
$civicrm_setting['CiviCRM Preferences']['allowPermDeleteFinancial'] = 1;
$civicrm_setting['Directory Preferences']['extensionsDir'] = '/var/www/cpehn/sites/all/civicrm/extensions';
$civicrm_setting['URL Preferences']['extensionsURL'] = 'http://cpehn.local/sites/all/civicrm/extensions/';
$civicrm_setting['URL Preferences']['imageUploadURL'] = 'http://cpehn.local/sites/default/files/civicrm/persist/contribute/';
$civicrm_setting['URL Preferences']['userFrameworkResourceURL'] = 'http://cpehn.local/sites/all/modules/contrib/civicrm';
Note that "allowPermDeleteFinancial" overrides built-in CiviAccounts auditing, and shouldn't ever be enabled on production!
Updated by Jon Goldberg almost 10 years ago · 1 revisions
Also available in: PDF HTML TXT
Go to top