summaryrefslogtreecommitdiffstats
path: root/application/config/config.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/config/config.php')
-rw-r--r--application/config/config.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/application/config/config.php b/application/config/config.php
index 40212b2f3..8abf1ff6f 100644
--- a/application/config/config.php
+++ b/application/config/config.php
@@ -642,3 +642,7 @@ $config['download_nginx_location'] = '/protected-uploads';
if (file_exists(APPPATH.'config/config-local.php')) {
include APPPATH.'config/config-local.php';
}
+
+if (getenv("ENVIRONMENT") === "testsuite" && isset($_SERVER['SERVER_PORT'])) {
+ $config['base_url'] = 'http://127.0.0.1:'.$_SERVER['SERVER_PORT'].'/';
+}