Configuration
This commit is contained in:
parent
0b38f0d7ce
commit
9751f545c5
3
application/configs/config.php
Normal file
3
application/configs/config.php
Normal file
@ -0,0 +1,3 @@
|
||||
<?php
|
||||
require_once realpath(dirname(__FILE__)).'/mysql.php';
|
||||
require_once realpath(dirname(__FILE__)).'/stockage.php';
|
9
scripts/build/config/VmApps/mysql.php
Normal file
9
scripts/build/config/VmApps/mysql.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
// Base de données de S&D
|
||||
define('MYSQL_HOST', '195.154.170.169');
|
||||
define('MYSQL_PORT', '53336');
|
||||
define('MYSQL_USER', 'wsuser');
|
||||
define('MYSQL_PASS', 'wspass2012');
|
||||
define('MYSQL_DEFAULT_DB', 'jo');
|
||||
define('MYSQL_SQL_LOG', 'NONE');
|
8
scripts/build/config/VmApps/stockage.php
Normal file
8
scripts/build/config/VmApps/stockage.php
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
/** Dossiers locaux pour les documents a telecharger (PDF kbis, marques, etc...) **/
|
||||
define('DOC_WEB_LOCAL', '/home/vhosts/data/enrichissement/');
|
||||
define('DOC_WEB_URL', '/data/');
|
||||
|
||||
/** LOGGING **/
|
||||
define('LOG_PATH', '/home/vhosts/data/enrichissement/log');
|
||||
|
9
scripts/build/config/local/mysql.php
Normal file
9
scripts/build/config/local/mysql.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
// Base de données de S&D
|
||||
define('MYSQL_HOST', '195.154.170.169');
|
||||
define('MYSQL_PORT', '53336');
|
||||
define('MYSQL_USER', 'wsuser');
|
||||
define('MYSQL_PASS', 'wspass2012');
|
||||
define('MYSQL_DEFAULT_DB', 'jo');
|
||||
define('MYSQL_SQL_LOG', 'NONE');
|
8
scripts/build/config/local/stockage.php
Normal file
8
scripts/build/config/local/stockage.php
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
/** Dossiers locaux pour les documents a telecharger (PDF kbis, marques, etc...) **/
|
||||
define('DOC_WEB_LOCAL', realpath('C:/Users/mricois/www/dataenrichissement/').'/');
|
||||
define('DOC_WEB_URL', '/data/');
|
||||
|
||||
/** LOGGING **/
|
||||
define('LOG_PATH', realpath('C:/Users/mricois/www/dataenrichissement/log/'));
|
||||
|
@ -21,6 +21,8 @@ $appconfigDir = APPLICATION_PATH.'/configs';
|
||||
$hostname = exec('echo $(hostname)');
|
||||
|
||||
copy($configDir.'/'.$hostname.'/application.ini', $appconfigDir.'/application.ini');
|
||||
copy($configDir.'/'.$hostname.'/mysql.php', $appconfigDir.'/mysql.php');
|
||||
copy($configDir.'/'.$hostname.'/stockage.php', $appconfigDir.'/stockage.php');
|
||||
|
||||
/** Zend_Application */
|
||||
require_once 'Zend/Application.php';
|
||||
|
@ -277,7 +277,7 @@ if (ini_get('apc.enable_cli')) {
|
||||
$config = new Zend_Config($application->getOptions());
|
||||
Zend_Registry::set('config', $config);
|
||||
try {
|
||||
$db = Zend_Db::factory($config->profil->db->local);
|
||||
$db = Zend_Db::factory($config->resources->db);
|
||||
$dbJo = Zend_Db::factory($config->profil->db->jo);
|
||||
} catch ( Exception $e ) {
|
||||
exit ( $e->getMessage() );
|
||||
@ -315,7 +315,7 @@ if ($opts->id) {
|
||||
}
|
||||
|
||||
//Chargement des classes metier
|
||||
require_once realpath(dirname(__FILE__)).'/../config/config.php';
|
||||
require_once APPLICATION_PATH.'/configs/config.php';
|
||||
require_once 'framework/fwk.php';
|
||||
require_once 'Metier/insee/classMInsee.php';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user