From 95bc8be4d55af936f18e8efcdbd492b52d958693 Mon Sep 17 00:00:00 2001 From: mark_story Date: Thu, 7 Feb 2013 20:32:26 -0500 Subject: [PATCH] Make path to router script absolute in server shell. Relative paths fail when you run the server from inside app/Console or any other path. --- lib/Cake/Console/Command/ServerShell.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Console/Command/ServerShell.php b/lib/Cake/Console/Command/ServerShell.php index d4f9a929e..d38816463 100644 --- a/lib/Cake/Console/Command/ServerShell.php +++ b/lib/Cake/Console/Command/ServerShell.php @@ -129,7 +129,7 @@ class ServerShell extends AppShell { $this->_host, $this->_port, $this->_documentRoot, - WEBROOT_DIR . '/index.php' + WWW_ROOT . '/index.php' ); $port = ($this->_port == self::DEFAULT_PORT) ? '' : ':' . $this->_port;