diff --git a/application/config/config.php b/application/config/config.php index 5023e7aa..93532af3 100644 --- a/application/config/config.php +++ b/application/config/config.php @@ -30,7 +30,7 @@ if ($request_uri === '.') { $request_uri = ''; } -$config['base_url'] = trim($protocol . $domain . $request_uri, '/'); +$config['base_url'] = !is_cli() ? trim($protocol . $domain . $request_uri, '/') : Config::BASE_URL; /* |--------------------------------------------------------------------------