skip manual building process

This commit is contained in:
GotPPay
2018-06-11 19:02:26 +02:00
parent c21b30d288
commit 06bea89fbc
7 changed files with 2717 additions and 2680 deletions

View File

@@ -34,14 +34,17 @@ if(APPLICATION_MODE === 'PROD'){
defined('ADMIN_MAIL') ? null : define('ADMIN_MAIL', 'dash-admin@saguaronet.ro');
defined('DB_SERVER') ? null : define('DB_SERVER', 'db');
defined('DB_USER') ? null : define('DB_USER', 'developer');
defined('DB_PASS') ? null : define('DB_PASS', 'developer');
if(APPLICATION_MODE === 'TEST'){
defined('DB_NAME') ? null : define('DB_NAME', 'ricoh_dash');
}else{
defined('DB_NAME') ? null : define('DB_NAME', 'ricoh_dash');
if (!defined('DB_SERVER')){
getenv('DB_SERVER') ? define('DB_SERVER', getenv('DB_SERVER')) : define('DB_SERVER', 'db');
}
if (!defined('DB_USER')){
getenv('DB_USER') ? define('DB_USER', getenv('DB_USER')) : define('DB_USER', 'developer');
}
if (!defined('DB_PASS')){
getenv('DB_PASS') ? define('DB_PASS', getenv('DB_PASS')) : define('DB_PASS', 'developer');
}
if (!defined('DB_NAME')){
getenv('DB_NAME') ? define('DB_NAME', getenv('DB_NAME')) : define('DB_NAME', 'ricoh_dash');
}
const TABLES = array(
@@ -149,6 +152,10 @@ const SUPPORT_MAIL_LIST = array(
const SESSION_LIFE_TIME = 60 * 24;
if (!defined('WIAAS_URL')){
getenv('WIAAS_URL') ? define('WIAAS_URL', $_ENV['WIAAS_URL']) : define('WIAAS_URL', 'http://localhost:8000');
}
const WIAAS_URL = APPLICATION_MODE === 'PROD' ? 'http://localhost:8000' : 'http://localhost:8000';
const WORKING_DAYS_KEY = 'you@gmail.com';
const JWT_API_SECRET_KEY = 'W11A$_AP1_S3CR3T';