|
|
@@ -14,16 +14,16 @@ $workDir = dirname(__FILE__) . "/src"; |
|
|
|
chdir($workDir); |
|
|
|
|
|
|
|
if (substr(php_sapi_name(), 0, 3) === 'cgi') { |
|
|
|
die("DedeCMS:needs php-cli to run\n\n"); |
|
|
|
die("DedeCMSV6:needs php-cli to run\n\n"); |
|
|
|
} |
|
|
|
|
|
|
|
if (count($argv) > 1 && $argv[1] == "serv") { |
|
|
|
// PHP5.4以下不支持内建服务器 |
|
|
|
// 用于开发调试 |
|
|
|
if (phpversion() < "5.4") { |
|
|
|
die("DedeCMS:command web server not support\n\n"); |
|
|
|
die("DedeCMSV6:command web server not support\n\n"); |
|
|
|
} |
|
|
|
echo "Start Dev Server For DedeCMS\n\r"; |
|
|
|
echo "Start Dev Server For DedeCMSV6\n\r"; |
|
|
|
echo "Open http://localhost:8088\n\r"; |
|
|
|
passthru(PHP_BINARY . ' -S localhost:8088 -t' . escapeshellarg('./')); |
|
|
|
} |