Added external host to config.php

This commit is contained in:
Karl Cordes 2017-10-27 19:48:00 +11:00
parent 52a19aef90
commit 0a90824a19

View file

@ -57,7 +57,10 @@ Configure::write('smtp_settings', array(
//Production/Staging Config //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'; $basedir = '/var/www/CMC-Sales/app';
Configure::write('email_directory', '/var/www/emails'); 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] 'probability'=> 100, //[optional]
'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string '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/'; $basedir = '/home/cmc/cmc-sales/app/';
Cache::config('default', array( Cache::config('default', array(