diff options
Diffstat (limited to 'application')
-rw-r--r-- | application/config/config.php | 4 |
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'].'/'; +} |