|
@@ -7,6 +7,10 @@ |
|
|
* @package DedeCMS.Command |
|
|
* @package DedeCMS.Command |
|
|
* @copyright Copyright (c) 2007 - 2019, DesDev, Inc. |
|
|
* @copyright Copyright (c) 2007 - 2019, DesDev, Inc. |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
// 切换工作目录到./src |
|
|
|
|
|
$workDir = dirname(__FILE__)."/src"; |
|
|
|
|
|
chdir($workDir); |
|
|
|
|
|
|
|
|
if (substr(php_sapi_name(), 0, 3) === 'cgi') |
|
|
if (substr(php_sapi_name(), 0, 3) === 'cgi') |
|
|
{ |
|
|
{ |
|
|
die("DedeCMS:needs php-cli to run\n\n"); |
|
|
die("DedeCMS:needs php-cli to run\n\n"); |
|
@@ -20,5 +24,5 @@ if (count($argv) > 1 && $argv[1] == "serv") { |
|
|
} |
|
|
} |
|
|
echo "Start Dev Server For DedeCMS\n\r"; |
|
|
echo "Start Dev Server For DedeCMS\n\r"; |
|
|
echo "Open http://localhost:8088\n\r"; |
|
|
echo "Open http://localhost:8088\n\r"; |
|
|
passthru(PHP_BINARY . ' -S localhost:8088 -t'.escapeshellarg('./src')); |
|
|
|
|
|
|
|
|
passthru(PHP_BINARY . ' -S localhost:8088 -t'.escapeshellarg('./')); |
|
|
} |
|
|
} |