Thursday, July 10, 2008

MAMP & cake (terminal)

YESS! I did it! ;-)

1. sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /var/mysql/mysql.sock
2. And 1 hour looking for bug, and found mistake in database.php

After some experiments I put host => 127.0.0.1
And forget about it ;-)
Now all cool -> host -> localhost
And my cake bash baker work fine

I am happy! I am like unixman ;-))))

Labels: , , ,

Hm. Cake 1.2RC2 & baker

It's very strange, but I cann't use this cake baker under MacOS ;-(

If I starting terminal cake (from pack dmg) I can read only help and resume: Process completed. And could not put any symbol

If I starting terminal, and go to my site directory and run:

bash cake bake

I can create "skeleton" of my web application in directory myapp. Now cake not want to use this subdir and I'm moving files into /cake/console/..

After this I type: bash cake bake
& setup database.php setup. Of couse, I know - this file has not mistakes (Yep, I'm copy database.php into site/app/config/ and read this "Cake is able to connect to database". So - My database setup is nice, and MySQL server work properly.

So. I returning into cake/console, and run bash cake bake - for creating model. But, after I choose database config "default" (yep My database config is really calling default) I get 3 warning about impossible to connect to database throw sockets and get finally message about "database haven't any tables" but this is wrong! I have tables.

And of cause, I'm using MAMP

Where is mistake? I don't know ;-(

Labels: , , , ,

Monday, October 22, 2007

CakePHP 1.2 pre beta

Hey-ya!

Now, we all can made dance of fun, and go to cakeforge.org to get latest version of Cake:

CakePHP 1.2.0.5875pre-beta
CakePHP 1.1.18.5850

yep! I', already download my favorite CakePHP 1.2! (Erh, I don't understand why you still using 1.1.* versions?)

I hope, in new october version of 1.2 cake, I haven't problems with saving unique/non unique fields in MySQL...

Labels: , ,