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,30 +239,15 @@ 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,
|
|
||||||
));
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
//APC (http://pecl.php.net/package/APC)
|
//APC (http://pecl.php.net/package/APC)
|
||||||
|
|
||||||
/*Cache::config('default', array(
|
/*Cache::config('default', array(
|
||||||
|
|
@ -242,18 +257,18 @@ Cache::config('default', array(
|
||||||
'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
|
||||||
)); */
|
)); */
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
// Xcache (http://xcache.lighttpd.net/)
|
// Xcache (http://xcache.lighttpd.net/)
|
||||||
*/
|
*/
|
||||||
/* Cache::config('default', array(
|
/* Cache::config('default', array(
|
||||||
'engine' => 'Xcache', //[required]
|
'engine' => 'Xcache', //[required]
|
||||||
'duration'=> 3600, //[optional]
|
'duration'=> 3600, //[optional]
|
||||||
'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
|
||||||
'user' => 'user', //user from xcache.admin.user settings
|
'user' => 'user', //user from xcache.admin.user settings
|
||||||
'password' => 'password', //plaintext password (xcache.admin.pass)
|
'password' => 'password', //plaintext password (xcache.admin.pass)
|
||||||
)); */
|
)); */
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* Memcache (http://www.danga.com/memcached/)
|
* Memcache (http://www.danga.com/memcached/)
|
||||||
|
|
@ -269,5 +284,5 @@ Cache::config('default', array(
|
||||||
* 'compress' => false, // [optional] compress data in Memcache (slower, but uses less memory)
|
* 'compress' => false, // [optional] compress data in Memcache (slower, but uses less memory)
|
||||||
* ));
|
* ));
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue