Added external host to config.php
This commit is contained in:
parent
52a19aef90
commit
0a90824a19
|
|
@ -57,7 +57,10 @@ Configure::write('smtp_settings', array(
|
|||
|
||||
|
||||
//Production/Staging Config
|
||||
if($host == 'cmc.lan' || $host == '192.168.0.7' || $host == 'cmcbeta.lan') {
|
||||
|
||||
$production_hosts = array('cmc.lan', '192.168.0.7', 'cmcbeta.lan', 'office.cmctechnologies.com.au');
|
||||
|
||||
if in_array($host, $production_hosts) {
|
||||
$basedir = '/var/www/CMC-Sales/app';
|
||||
Configure::write('email_directory', '/var/www/emails');
|
||||
|
||||
|
|
@ -68,10 +71,7 @@ if($host == 'cmc.lan' || $host == '192.168.0.7' || $host == 'cmcbeta.lan') {
|
|||
'probability'=> 100, //[optional]
|
||||
'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string
|
||||
));
|
||||
|
||||
|
||||
}
|
||||
else { //Development config
|
||||
} else { //Development config
|
||||
$basedir = '/home/cmc/cmc-sales/app/';
|
||||
|
||||
Cache::config('default', array(
|
||||
|
|
|
|||
Loading…
Reference in a new issue