Cakephp 3.4.14例外:找不到“ Serve”的Shell类

时间:2018-07-07 08:20:37

标签: php cakephp cakephp-3.0

这是我的贝壳剪

 Maan@DESKTOP-TNA7PJU MINGW64 /d/xampp1/htdocs/app
$ bin/cake serve
Exception: Shell class for "Serve" could not be found. in [D:\xampp1\htdocs\app\vendor\cakephp\cakephp\src\Console\ShellDispatcher.php, line 327]

Maan@DESKTOP-TNA7PJU MINGW64 /d/xampp1/htdocs/app
$ cd ../pocketpa-git-clone000000/

Maan@DESKTOP-TNA7PJU MINGW64 /d/xampp1/htdocs/pocketpa-git-clone000000 (master)
$ bin/cake serve
Exception: Shell class for "Serve" could not be found. in [D:\xampp1\htdocs\pocketpa-git-clone000000\vendor\cakephp\cakephp\src\Console\ShellDispatcher.php, line 327]
Warning Error: file_put_contents(D:\xampp1\htdocs\pocketpa-git-clone000000\logs\cli-error.log): failed to open stream: No such file or directory in [D:\xampp1\htdocs\pocketpa-git-clone000000\vendor\cakephp\cakephp\src\Log\Engine\FileLog.php, line 133]

PHP Warning:  file_put_contents(D:\xampp1\htdocs\pocketpa-git-clone000000\logs\cli-error.log): failed to open stream: No such file or directory in D:\xampp1\htdocs\pocketpa-git-clone000000\vendor\cakephp\cakephp\src\Log\Engine\FileLog.php on line 133

昨晚我关闭了我的电脑,而在早晨重新启动时,我面临着这个问题 cakephp版本3.4.14 PHP 5.6.36 想要启动项目时遇到这个问题

1 个答案:

答案 0 :(得分:0)

对不起,我不好,我被Laravel项目上经常使用的不同项目弄得一团糟

php artisan serve

此命令将在http://localhost:8000处启动开发服务器: 当我回到CakePhp Project时,我陷入困境并尝试

bin\cake serve

命令为cakephp环境http://localhost:8765/启动本地服务器 那让我很麻烦 但是在LocalHost上运行CakePhp Sever的原始命令是

bin\cake server

在这里您可以获得更多详细信息https://book.cakephp.org/3.0/en/installation.html#development-server