From 0a90824a1978155c7bf7c1e2b4d0c7a44f89385a Mon Sep 17 00:00:00 2001 From: Karl Cordes Date: Fri, 27 Oct 2017 19:48:00 +1100 Subject: [PATCH] Added external host to config.php --- app/config/core.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/config/core.php b/app/config/core.php index 472983dd..514f1361 100644 --- a/app/config/core.php +++ b/app/config/core.php @@ -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(