CakePHP Shell 怪异:工作目录损坏并且找不到 shell

发布于 2024-12-12 02:31:12 字数 942 浏览 0 评论 0原文

我在运行 CakePHP 1.3 shell 时遇到了问题。我有一个想要测试的 shell,因此我更改到应用程序的目录并尝试运行它:

$ pwd
/path/to/cakephp/app
$ ../cake/console/cake
No configuration could be loaded for domain /path/to/cakephp/app. Exiting...

好吧,这有点奇怪。那么让我们尝试向它传递一个 -app :

$ ../cake/console/cake -app /path/to/cakephp/app

Welcome to CakePHP v1.3.8 Console
---------------------------------------------------------------
Current Paths:
 -app: /path/to/cakephp/app/
 -working: /path/to/cakephp//path/to/cakephp/app
 -root: /path/to/cakephp
 -core: /path/to/cakephp

...嗯?核心目录完全错误,我不知道该工作目录发生了什么。使用 -working 传递工作目录会产生完全相同的输出。

最重要的是,我的外壳没有被检测到。我在 CakePHP book 中注意到这个命令应该显示一个列表它正在寻找 shell 的目录,并用 - none 告诉您是否没有。相反,没有目录显示,期间。这些 shell 位于 app/vendors/shells 中,就其价值而言。

所以...我迷路了。这是怎么回事?

I've been running into an issue with running CakePHP 1.3 shells. I have a shell that I want to test, so I change to the directory of my app and attempt to run it:

$ pwd
/path/to/cakephp/app
$ ../cake/console/cake
No configuration could be loaded for domain /path/to/cakephp/app. Exiting...

Okay, that's a little weird. So let's try to pass an -app to it:

$ ../cake/console/cake -app /path/to/cakephp/app

Welcome to CakePHP v1.3.8 Console
---------------------------------------------------------------
Current Paths:
 -app: /path/to/cakephp/app/
 -working: /path/to/cakephp//path/to/cakephp/app
 -root: /path/to/cakephp
 -core: /path/to/cakephp

...huh? The core dir is completely wrong and I have no idea what's going on with that working directory. Passing a working directory with -working results in the exact same output.

On top of that, none of my shells are being detected. I notice in the CakePHP book that this command is supposed to show a list of directories where it is looking for shells and tells you if there are none with - none. Instead, no directories show up, period. The shells are in app/vendors/shells for what it's worth.

So...I'm lost. What's going on here?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

玻璃人 2024-12-19 02:31:12

Cake 核心团队的某人回答:

13:10:15 <savant> AlexMax: 1.3.8 has known issues with shells
13:10:19 <savant> please update to 1.3.13

嗯,猜猜是这样。

Answered by someone on Cake's core team:

13:10:15 <savant> AlexMax: 1.3.8 has known issues with shells
13:10:19 <savant> please update to 1.3.13

Well, guess that sorts it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文