蛋糕php迁移从1.3到2.0,蛋糕升级所有命令都不起作用

时间:2014-05-09 13:22:48

标签: cakephp migration cakephp-2.0 cakephp-1.3

您好,我从他们的网站上关注cakephp 2.0的migrion指南,以便将我的网站框架从1.3更新到2.0,但命令

  

蛋糕升级全部

做着事。当我运行命令时,它不会更改任何文件的名称我得到以下输出

Welcome to CakePHP v2.0.0 Console
---------------------------------------------------------------
App : Console
Path: C:\xampp\htdocs\cakephp-2.0.0\app\Console\
---------------------------------------------------------------
Running tests
Running locations
Running i18n
Done updating C:\xampp\htdocs\cakephp-2.0.0\app\Console\cake.php
Running helpers
Done updating C:\xampp\htdocs\cakephp-2.0.0\app\Console\cake.php
Running basics
Done updating C:\xampp\htdocs\cakephp-2.0.0\app\Console\cake.php
Running request
Done updating C:\xampp\htdocs\cakephp-2.0.0\app\Console\cake.php
Running configure
Done updating C:\xampp\htdocs\cakephp-2.0.0\app\Console\cake.php
Running constants
Done updating C:\xampp\htdocs\cakephp-2.0.0\app\Console\cake.php
Running components
Done updating C:\xampp\htdocs\cakephp-2.0.0\app\Console\cake.php

注意当我打开蛋糕控制台时,我得到了这个

Welcome to CakePHP v2.0.0 Console
---------------------------------------------------------------
App : Console
Path: C:\xampp\htdocs\cakephp-2.0.0\app\Console\
---------------------------------------------------------------
Current Paths:

-app: Console
-working: C:\xampp\htdocs\cakephp-2.0.0\app\Console
-root: C:\xampp\htdocs\cakephp-2.0.0\app
-core: C:\xampp\htdocs\cakephp-2.0.0\lib

Changing Paths:

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

是工作路径问题还是我错过了什么?任何帮助将不胜感激。

1 个答案:

答案 0 :(得分:0)

感谢@mark指出我正确的方向,为未来的读者

问题我在错误的文件夹中。我正在运行像 cd控制台/蛋糕 (警告方式)的命令

正确的方式

在CMD中打开你的app文件夹后,向Linux用户或mac用户运行命令。

./Console/cake upgrade all

在CMD中打开您的应用程序文件夹后,让Windows用户运行命令。

 .\Console\cake upgrade all