Project

General

Profile

Overrides for devstaging sites » History » Version 2

Jon Goldberg, 12/15/2014 07:00 PM

1 1 Jon Goldberg
h1. Overrides for dev/staging sites
2
3
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.
4
5
Here's my local CPEHN overrides.  You can put these into civicrm.settings.php on line 2, just under @<?php@.
6
<pre>
7
global $civicrm_setting;
8
$civicrm_setting['CiviCRM Preferences']['allowPermDeleteFinancial'] = 1;
9 2 Jon Goldberg
$civicrm_setting['Directory Preferences']['customTemplateDir'] = '/var/www/cpehn/sites/all/civicrm/templates';
10
$civicrm_setting['Directory Preferences']['customPHPPathDir'] = '/var/www/cpehn/sites/all/civicrm';
11 1 Jon Goldberg
$civicrm_setting['Directory Preferences']['extensionsDir'] = '/var/www/cpehn/sites/all/civicrm/extensions';
12
$civicrm_setting['URL Preferences']['extensionsURL'] = 'http://cpehn.local/sites/all/civicrm/extensions/';
13
$civicrm_setting['URL Preferences']['imageUploadURL'] = 'http://cpehn.local/sites/default/files/civicrm/persist/contribute/';
14
$civicrm_setting['URL Preferences']['userFrameworkResourceURL'] = 'http://cpehn.local/sites/all/modules/contrib/civicrm';
15
</pre>
16
17
Note that "allowPermDeleteFinancial" overrides built-in CiviAccounts auditing, and shouldn't ever be enabled on production!
Go to top