Browse Source

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.
mark_story 13 years ago
parent
commit
95bc8be4d5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Cake/Console/Command/ServerShell.php

+ 1 - 1
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;