Fixed core config
This commit is contained in:
parent
0c5df3f940
commit
381da05da4
|
|
@ -45,15 +45,15 @@ Configure::write('debug', 0);
|
||||||
|
|
||||||
$host = $_SERVER['HTTP_HOST'];
|
$host = $_SERVER['HTTP_HOST'];
|
||||||
|
|
||||||
die(print_r($host));
|
die($host));
|
||||||
|
|
||||||
//Production Config
|
//Production Config
|
||||||
if($host == 'cmc.lan') {
|
if($host == 'cmc.lan') {
|
||||||
$basedir = '/var/www/cakephp/app';
|
$basedir = '/var/www/CMC-Sales/app';
|
||||||
Configure::write('email_directory', '/var/www/cakephp/app/emails');
|
Configure::write('email_directory', '/var/www/cakephp/app/emails');
|
||||||
|
|
||||||
Configure::write('pdf_directory', $basedir.'/webroot/pdf/');
|
Configure::write('pdf_directory', '/var/www/cakephp/app/webroot/pdf/');
|
||||||
Configure::write('attachments_directory', $basedir.'/webroot/attachments_files/');
|
Configure::write('attachments_directory', '/var/www/cakephp/app/webroot/attachments_files/');
|
||||||
|
|
||||||
Configure::write('smtp_settings', array(
|
Configure::write('smtp_settings', array(
|
||||||
'port' => '25',
|
'port' => '25',
|
||||||
|
|
@ -61,6 +61,17 @@ if($host == 'cmc.lan') {
|
||||||
'host' => '192.168.0.8',
|
'host' => '192.168.0.8',
|
||||||
'username' => 'sales',
|
'username' => 'sales',
|
||||||
'password' => '2seng33+02'));
|
'password' => '2seng33+02'));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Cache::config('default', array(
|
||||||
|
'engine' => 'Apc', //[required]
|
||||||
|
'duration'=> 3600, //[optional]
|
||||||
|
'probability'=> 100, //[optional]
|
||||||
|
'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string
|
||||||
|
));
|
||||||
|
|
||||||
}
|
}
|
||||||
else { //Staging config
|
else { //Staging config
|
||||||
$basedir = '/home/karlcordes/CMC-Sales/app/';
|
$basedir = '/home/karlcordes/CMC-Sales/app/';
|
||||||
|
|
@ -71,6 +82,25 @@ else { //Staging config
|
||||||
'timeout' => '30',
|
'timeout' => '30',
|
||||||
'host' => 'localhost'));
|
'host' => 'localhost'));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* Cache Engine Configuration
|
||||||
|
* Default settings provided below
|
||||||
|
*
|
||||||
|
* File storage engine.
|
||||||
|
*/
|
||||||
|
Cache::config('default', array(
|
||||||
|
'engine' => 'File', //[required]
|
||||||
|
'duration'=> 3600, //[optional]
|
||||||
|
'probability'=> 100, //[optional]
|
||||||
|
'path' => '/Users/karlcordes/CMC-Sales/app/tmp/', //[optional] use system tmp directory - remember to use absolute path
|
||||||
|
'prefix' => 'cake_', //[optional] prefix every cache file with this string
|
||||||
|
'lock' => false, //[optional] use file locking
|
||||||
|
'serialize' => true,
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -209,22 +239,7 @@ Configure::write('Security.salt', 'uiPxR3MzVXAID5zucbxLdxP4TX33buPoCWZr4JfroGoaE
|
||||||
*/
|
*/
|
||||||
Configure::write('Acl.classname', 'DbAcl');
|
Configure::write('Acl.classname', 'DbAcl');
|
||||||
Configure::write('Acl.database', 'default');
|
Configure::write('Acl.database', 'default');
|
||||||
/**
|
|
||||||
*
|
|
||||||
* Cache Engine Configuration
|
|
||||||
* Default settings provided below
|
|
||||||
*
|
|
||||||
* File storage engine.
|
|
||||||
*/
|
|
||||||
Cache::config('default', array(
|
|
||||||
'engine' => 'File', //[required]
|
|
||||||
'duration'=> 3600, //[optional]
|
|
||||||
'probability'=> 100, //[optional]
|
|
||||||
'path' => '/Users/karlcordes/CMC-Sales/app/tmp/', //[optional] use system tmp directory - remember to use absolute path
|
|
||||||
'prefix' => 'cake_', //[optional] prefix every cache file with this string
|
|
||||||
'lock' => false, //[optional] use file locking
|
|
||||||
'serialize' => true,
|
|
||||||
));
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue