]> _ Git - fluidbook-v3.git/commitdiff
wip #3703 @0.75
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 12 Jun 2020 15:13:36 +0000 (15:13 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 12 Jun 2020 15:13:36 +0000 (15:13 +0000)
framework/application/configs/application.ini
index.php

index a65983430df19b3a3624b864982a844bf2c76b11..130d08ce863a12b450708f3e802a807084b70599 100644 (file)
@@ -67,6 +67,17 @@ privacy.analytics = 1
 
 ;weinre = https://6114024f.ngrok.io/target/target-script-min.js#anonymous
 
+[learning : production]
+
+robots = false
+
+webhost = elearning.fluidbook.com
+
+locales.en = elearning.fluidbook.com
+locales.fr = fr.elearning.fluidbook.com
+
+database.params.dbname = fluidbook_elearning
+
 [testing : production]
 
 dev = true
index 1cb64f130e38364643cd8b39725aa9e69981da78..e495985b4d3e690d1ceb0a291ff4c92bcb0592aa 100644 (file)
--- a/index.php
+++ b/index.php
@@ -4,10 +4,12 @@ $start = microtime(true);
 ini_set('log_errors', '1');
 ini_set('error_log', dirname(__FILE__) . '/log/php_error.log');
 
-if (strpos($_SERVER['HTTP_HOST'], 'dev.') !== false) {
-       define('APPLICATION_ENV', 'testing');
+if (strpos($_SERVER['HTTP_HOST'], 'elearning.') !== false) {
+    define('APPLICATION_ENV', 'learning');
+} elseif (strpos($_SERVER['HTTP_HOST'], 'dev.') !== false) {
+    define('APPLICATION_ENV', 'testing');
 } else {
-       define('APPLICATION_ENV', 'production');
+    define('APPLICATION_ENV', 'production');
 }
 
 include dirname(__FILE__) . '/CubeIT/common.php';