CakePHP 大师:控制台 cake 命令未正确找到 -app 路径?

发布于 2024-07-14 12:22:44 字数 1049 浏览 7 评论 0原文

我已在此文件夹中安装了 CakePHP 核心文件:

/home/iopener/webapps/cake_1.2.1.8004

我已在此处安装了我的应用程序:

/home/iopener/webapps/myapp.com/app

蛋糕控制台命令是在我的路径中,并且运行良好,但它似乎忽略了任何将其指向正确的 -app 文件夹的尝试。 如果我从应用程序文件夹内运行“cake”,则会收到此错误:

Welcome to CakePHP v1.2.1.8004 Console
---------------------------------------------------------------
Current Paths:
 -app: app
 -working: /home/iopener/webapps/myapp.com/app
 -root: /home/iopener/webapps/myapp.com
 -core: /home/iopener/webapps/cake_1.2.1.8004

Changing Paths:
your working path should be the same as your application path
to change your path use the '-app' param.
Example: -app relative/path/to/myapp or -app /absolute/path/to/myapp

请注意,工作路径和应用程序路径相同,但 -app 选项只是缺少绝对路径。 所以我尝试了这个命令:

cake -app /home/iopener/webapps/myapp.com/app

并得到了与以前完全相同的错误消息。 我尝试过从根文件夹(应用程序的上一级)运行蛋糕,我尝试过使用相对路径,但似乎没有任何效果。

我在谷歌上花了大约两个小时试图找到有类似问题的人,但没有任何乐趣。

我已经在其他机器上安装了 CakePHP,并且没有出现任何问题,但我不记得它是否使用集中式核心文件夹(就像我现在一样)。

有任何想法吗? 蒂亚,

-乔什

I've installed the CakePHP core files in this folder:

/home/iopener/webapps/cake_1.2.1.8004

I've got my app installed here:

/home/iopener/webapps/myapp.com/app

The cake console command is in my path, and runs fine, but it seems to be ignoring any attempt to point it to the correct -app folder. If I run 'cake' from inside the app folder, I get this error:

Welcome to CakePHP v1.2.1.8004 Console
---------------------------------------------------------------
Current Paths:
 -app: app
 -working: /home/iopener/webapps/myapp.com/app
 -root: /home/iopener/webapps/myapp.com
 -core: /home/iopener/webapps/cake_1.2.1.8004

Changing Paths:
your working path should be the same as your application path
to change your path use the '-app' param.
Example: -app relative/path/to/myapp or -app /absolute/path/to/myapp

Note that the working path and the app path ARE the same, but the -app option is just missing the absolute path. So I tried this command:

cake -app /home/iopener/webapps/myapp.com/app

And got the exact same error message as before. I've tried running cake from the root folder (one level up from the app), I've tried using relative paths, but nothing seems to work.

I've spent about 2 hours on Google trying to find anybody with a similar problem, and no joy.

I have installed CakePHP on other machines and got this working without a problem, but I can't recall if it was using a centralized core folder (like I am now) or not.

Any ideas? TIA,

-Josh

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

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

发布评论

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

评论(1

ぺ禁宫浮华殁 2024-07-21 12:22:44

我不应该这么晚/这么早地编程。

运行“cake”是一种诊断,但如果您只是

cake bake

从应用程序文件夹运行,它就可以正常工作。

我该好好睡一觉了。 感谢各位耐心的关注。

-乔什

I should not be programming this late/early.

Running 'cake' is a sort of diagnostic, but if you just run

cake bake

from the app folder, it works fine.

Time for me to get some sleep. Thanks for any patient eyeballs.

-Josh

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