From 2a9ac29813eb5d55ade00e47f9acf48109c603ed Mon Sep 17 00:00:00 2001 From: llgoer Date: Wed, 10 Jul 2019 14:19:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=BD=E4=BB=A4=E8=A1=8C=E8=BF=90=E8=A1=8C?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 ++ dedecms | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 364cbbb1..7d170aea 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,5 @@ src/install/install_lock.txt src/install/index.php.bak src/install/index.html src/install/module-install.php.bak +src/a/* +src/uploads/allimg/* diff --git a/dedecms b/dedecms index b82cd389..323ea70d 100755 --- a/dedecms +++ b/dedecms @@ -7,6 +7,10 @@ * @package DedeCMS.Command * @copyright Copyright (c) 2007 - 2019, DesDev, Inc. */ +// 切换工作目录到./src +$workDir = dirname(__FILE__)."/src"; +chdir($workDir); + if (substr(php_sapi_name(), 0, 3) === 'cgi') { 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 "Open http://localhost:8088\n\r"; - passthru(PHP_BINARY . ' -S localhost:8088 -t'.escapeshellarg('./src')); + passthru(PHP_BINARY . ' -S localhost:8088 -t'.escapeshellarg('./')); } \ No newline at end of file