蛋糕烘烤shell脚本失败(在cakephp2 => cakephp3迁移后)

时间:2017-11-26 23:31:23

标签: shell cakephp cakephp-3.0

我目前正在从2 =>迁移应用程序每当我运行蛋糕/烘烤时,我都会收到此错误:

Exception: Shell class for "-working" could not be found. in [/Users/david/Sites/otherland/app/vendor/cakephp/cakephp/src/Console/ShellDispatcher.php, line 328]

当我查看给予ShellDispatcher的参数时,我看到了:

Array
(
    [0] => /Users/david/Sites/otherland/app/bin/cake.php
    [1] => -working
    [2] => /Users/david/Sites/otherland/app
    [3] => bake
)

显然,索引1的参数是问题所在。我没有主动在shell中输入“-working”。我不知道这可能来自哪里。有没有人知道这可能来自哪里

1 个答案:

答案 0 :(得分:1)

问题是我没有替换文件app/bin/cake(对于app/bin/cake.bat的Windows用户。蛋糕2到3中的这些文件有一些小的变化,需要更换。 (在这里获取https://github.com/cakephp/app/tree/master/bin

编辑:cakephp升级工具(https://github.com/cakephp/upgrade)有一个任务(skeleton),可复制上述文件等。我没有尝试过,但这似乎是处理问题的好方法。

相关问题