Ajustar mejor la configuración para desarrollo y producción.

git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_PROFIND_Web/trunk@32 3fe1ab16-cfe0-e34b-8c9f-7d8c168d430d
This commit is contained in:
roberto 2012-09-26 11:07:23 +00:00
parent 736f2b3e42
commit d439c12781
3 changed files with 52 additions and 31 deletions

View File

@ -49,18 +49,6 @@ $config = array(
// use 'site/error' action to display errors // use 'site/error' action to display errors
'errorAction'=>'site/error', 'errorAction'=>'site/error',
), ),
'mail' => array(
'class' => 'application.extensions.yii-mail.YiiMail',
'transportType' => 'smtp',
'transportOptions' => array(
'host' => 'smtp.selforsistemas.com',
'encryption' => '',
'username' => 'admin@selforsistemas.com',
'password' => 'Rafael2012',
'port' => 25,
),
'viewPath' => 'application.views.mails',
),
/*'widgetFactory'=>array( /*'widgetFactory'=>array(
'widgets'=>array( 'widgets'=>array(
'CLinkPager'=>array( 'CLinkPager'=>array(
@ -134,10 +122,4 @@ $config = array(
),*/ ),*/
), ),
// application-level parameters that can be accessed
// using Yii::app()->params['paramName']
'params'=>array(
'frontpage' => 'http://localhost/index.php',
'email_remitente' => 'mantenimiento@rodax-software.com',
),
); );

View File

@ -41,6 +41,21 @@ $configSpecific = array(
'tablePrefix' => '', 'tablePrefix' => '',
), ),
'components'=>array(
'mail' => array(
'class' => 'application.extensions.yii-mail.YiiMail',
'transportType' => 'smtp',
'transportOptions' => array(
'host' => 'mail.rodax-software.com',
'encryption' => '',
'username' => 'mantenimiento+rodax-software.com',
'password' => '34y96w6d',
'port' => 25,
),
'viewPath' => 'application.views.mails',
),
),
// Application Log // Application Log
'log' => array( 'log' => array(
'class' => 'CLogRouter', 'class' => 'CLogRouter',
@ -48,7 +63,7 @@ $configSpecific = array(
// Save log messages on file // Save log messages on file
array( array(
'class' => 'CFileLogRoute', 'class' => 'CFileLogRoute',
'levels' => 'error, warning, trace, info', 'levels' => 'error, warning, info',
), ),
// Show log messages on web pages // Show log messages on web pages
array( array(
@ -61,7 +76,11 @@ $configSpecific = array(
), ),
), ),
// application-level parameters that can be accessed
// using Yii::app()->params['paramName']
'params'=>array( 'params'=>array(
'frontpage' => 'http://localhost/index.php',
'email_remitente' => 'mantenimiento@rodax-software.com',
), ),
); );

View File

@ -24,12 +24,28 @@ $configSpecific = array(
'components' => array( 'components' => array(
// Database // Database
'db' => array( 'db'=>array(
'connectionString' => 'mysql:host=PRODUCTION_HOST;dbname=PRODUCTION_DBNAME', 'connectionString' => 'mysql:host=localhost;dbname=usuarios_dev',
'username' => 'USERNAME', 'emulatePrepare' => true,
'password' => 'PASSWORD', 'username' => 'root',
'charset'=>'utf8', 'password' => 'selfor',
'tablePrefix' => '', 'charset' => 'utf8',
'tablePrefix' => '',
),
'components'=>array(
'mail' => array(
'class' => 'application.extensions.yii-mail.YiiMail',
'transportType' => 'smtp',
'transportOptions' => array(
'host' => 'smtp.selforsistemas.com',
'encryption' => '',
'username' => 'admin@selforsistemas.com',
'password' => 'Rafael2012',
'port' => 25,
),
'viewPath' => 'application.views.mails',
),
), ),
// Application Log // Application Log
@ -39,19 +55,23 @@ $configSpecific = array(
// Save log messages on file // Save log messages on file
array( array(
'class' => 'CFileLogRoute', 'class' => 'CFileLogRoute',
'levels' => 'error, warning, trace, info', 'levels' => 'error, warning',
), ),
// Send errors via email to the system admin // Send errors via email to the system admin
array( /*array(
'class' => 'CEmailLogRoute', 'class' => 'CEmailLogRoute',
'levels' => 'error, warning', 'levels' => 'error, warning',
'emails' => 'marco@example.com', 'emails' => 'marco@example.com',
), ),*/
), ),
), ),
), ),
'params' => array(
'frontpage' => 'http://intranet-incam.dyndns.biz:8008/profind/',
'email_remitente' => 'noreply@profindtic.com',
),
); );
?> ?>