CakePHP database migration error

I am using Ubuntu + cakephp 1.3. I am trying to move a database using cakeDC migration plugin. I configured the plugin according to the instructions.

But when I go to terminal, go to the application path / app / dir and then run the "Cake Migration Help" command, it gives me the following error,

Hi user,

Welcome to CakePHP Console v1.2

Current paths: -working: / path / to / cake / -root: / path / to / cake / -app: / path / to / cake / app / -core: / path / to / cake /

Change path: Your working path must be the same as your application path, use the -app parameter to change your path. Example: -app relative / path / to / myapp or -app / absolute / path / to / myapp

Available skins:

application / manufacturers / sinks /: - none

vendors / sinks /: - none

cake / console / lyes /: acl api bake console eject

To run a command, enter 'cake shell_name [args]' For help with a specific command, enter "cake shell_name help"

Then I followed the steps given in: http://book.cakephp.org/view/108/The-CakePHP-Console

$ cake -app / path / to / app

But I have not been successful. Can someone help me on this issue ...

Thanks to adavnce.

+2


a source to share


1 answer


You launch a cake shell that is somewhere in yours $PATH

(enter which cake

to see which one comes in $PATH

). To start the cake wrapper that belongs to your application (version 1.3), execute /path/to/your/application/cake/console/cake

(if you are in / app dir, just execute ../cake/console/cake

) with whatever options you need (for example -app

).



+1


a source







All Articles