Re: setting up cake bake console
Step 1: change directory to where your app lives (in your example above /Users/myusername/myappname) Step 2: from a console, type "cake bake" Step 3: follow the prompts ... On Jan 5, 1:15 pm, gemmes wrote: > Hi, > > I ran: > > cake bake > > I entered my path to appname and proceeded along with no problems > until I tried to do: > > cake bake model > > this caused the following error: > > Error: Model directory could not be found. > Be sure you have created /Users/myusername/models/ > myusername:~ myusername$ > > When i try cake bake model again console creates a new app called > model, not what i want. > > I believe my errors are stemming from my paths being incorrect in > someway and im certain that my app and path should not be my Mac OS X > username, they should be the name of my app. > So I can then run multiple apps. > > Everytime Im asked to compare paths I see this: > Skel Directory: /Users/myusername/Sites/_cake/cake/console/libs/ > templates/skel > Will be copied to: /Users/myusername/myappname > > The will be copied to line is always wrong and when i tried cake bake > model the line was wrong too. my Sites directory is always missing > from my path and I dunno why. > > Pls help. > > gemmes --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: setting up cake bake console
Hi, I ran: cake bake I entered my path to appname and proceeded along with no problems until I tried to do: cake bake model this caused the following error: Error: Model directory could not be found. Be sure you have created /Users/myusername/models/ myusername:~ myusername$ When i try cake bake model again console creates a new app called model, not what i want. I believe my errors are stemming from my paths being incorrect in someway and im certain that my app and path should not be my Mac OS X username, they should be the name of my app. So I can then run multiple apps. Everytime Im asked to compare paths I see this: Skel Directory: /Users/myusername/Sites/_cake/cake/console/libs/ templates/skel Will be copied to: /Users/myusername/myappname The will be copied to line is always wrong and when i tried cake bake model the line was wrong too. my Sites directory is always missing from my path and I dunno why. Pls help. gemmes --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: setting up cake bake console
Also, you can specify the directory using the -app attribute to bake, i.e. : ./cake bake -app /Users/myusername/Sites/ mynewapp Which generates this as the next step: Welcome to CakePHP v1.2.0.7962 Console --- App : Sites Path: /Users/myusername/Sites --- Bake Project Skel Directory: /Applications/xampp/xamppfiles/lib/php/cake/console/ libs/templates/skel Will be copied to: /Users/myusername/Sites/mynewapp --- Look okay? (y/n/q) [y] > On Jan 4, 3:59 am, gemmes wrote: > Hi All, > > Im trying to bake some apps from the console. > Can someone please help me solve the problems Im having? > > I ran this in Mac OS X Terminal: cake bake mynewapp > > Errors: > 1. App: myusername Wrong too. believe it should show mynewapp not > myusername, same for path > 2. Will be copied to: /Users/myusername/mynewapp This is wrong should > be copied to /Users/myusername/Sites/mynewapp > 3. Error: /Users/myusername/config/ not found I dont know why I > receive this error > 4. Localhost says: Your database configuration file is NOT present. > Rename config/database.php.default to config/database.php I bake > console should handle this, not going to handcode the file. > > The output(selected): > > Welcome to CakePHP v1.2.0.7962 Console > App : myusername // I believe this should be > mynewapp not OS myusername > Path: /Users/myusername // same here > > Bake Project > Skel Directory: /Users/myusername/Sites/_cake/cake/console/libs/ > templates/skel > Will be copied to: /Users/myusername/mynewapp > > Look okay? (y/n/q) > [y] > n > What is the full path for this app including the app directory name? > Example: /Users/myusername/mynewapp/myapp > [/Users/myusername/mynewapp/myapp] > /Users/myusername/Sites/mynewapp > Bake Project > Skel Directory: /Users/sg/Sites/_cake/cake/console/libs/templates/skel > Will be copied to: /Users/myusername/Sites/mynewapp > --- > Look okay? (y/n/q) > [y] > y > > Creating file /Users/myusername/Sites/invoicr/views/pages/home.ctp > Wrote /Users/myusername/Sites/invoicr/views/pages/home.ctp > Welcome page created > Random hash key created for 'Security.salt' > CAKE_CORE_INCLUDE_PATH set to /Users/myusername/Sites/_cake in webroot/ > index.php > CAKE_CORE_INCLUDE_PATH set to /Users/myusername/Sites/_cake in webroot/ > test.php > Remember to check these value after moving to production server > > Your database configuration was not found. Take a moment to create > one. > --- > The following database configuration will be created: > --- > Name: default > Driver: mysql > Persistent: false > Host: localhost > User: mynewapp > Pass: *** > Database: mynewapp > --- > Look okay? (y/n) > [y] > y > Do you wish to add another database configuration? > [n] > > Error: /Users/myusername/config/ not found // I dont know why I > receive this error? > sg:~ sg$ > > pls help > > gemmes --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: setting up cake bake console
Call the script from the parent directory of the Cake App and don't specify app name. eg in cake # ./cake/console/cake bake On Jan 4, 3:59 am, gemmes wrote: > Hi All, > > Im trying to bake some apps from the console. > Can someone please help me solve the problems Im having? > > I ran this in Mac OS X Terminal: cake bake mynewapp > > Errors: > 1. App: myusername Wrong too. believe it should show mynewapp not > myusername, same for path > 2. Will be copied to: /Users/myusername/mynewapp This is wrong should > be copied to /Users/myusername/Sites/mynewapp > 3. Error: /Users/myusername/config/ not found I dont know why I > receive this error > 4. Localhost says: Your database configuration file is NOT present. > Rename config/database.php.default to config/database.php I bake > console should handle this, not going to handcode the file. > > The output(selected): > > Welcome to CakePHP v1.2.0.7962 Console > App : myusername // I believe this should be > mynewapp not OS myusername > Path: /Users/myusername // same here > > Bake Project > Skel Directory: /Users/myusername/Sites/_cake/cake/console/libs/ > templates/skel > Will be copied to: /Users/myusername/mynewapp > > Look okay? (y/n/q) > [y] > n > What is the full path for this app including the app directory name? > Example: /Users/myusername/mynewapp/myapp > [/Users/myusername/mynewapp/myapp] > /Users/myusername/Sites/mynewapp > Bake Project > Skel Directory: /Users/sg/Sites/_cake/cake/console/libs/templates/skel > Will be copied to: /Users/myusername/Sites/mynewapp > --- > Look okay? (y/n/q) > [y] > y > > Creating file /Users/myusername/Sites/invoicr/views/pages/home.ctp > Wrote /Users/myusername/Sites/invoicr/views/pages/home.ctp > Welcome page created > Random hash key created for 'Security.salt' > CAKE_CORE_INCLUDE_PATH set to /Users/myusername/Sites/_cake in webroot/ > index.php > CAKE_CORE_INCLUDE_PATH set to /Users/myusername/Sites/_cake in webroot/ > test.php > Remember to check these value after moving to production server > > Your database configuration was not found. Take a moment to create > one. > --- > The following database configuration will be created: > --- > Name: default > Driver: mysql > Persistent: false > Host: localhost > User: mynewapp > Pass: *** > Database: mynewapp > --- > Look okay? (y/n) > [y] > y > Do you wish to add another database configuration? > [n] > > Error: /Users/myusername/config/ not found // I dont know why I > receive this error? > sg:~ sg$ > > pls help > > gemmes --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---