English 中文(简体)
How can I set up bake with MAMP on OS X with projects in Sites ?
原标题:

I m trying to set up cake bake on OS X. I m using MAMP and every time I try to bake , I get this:

-bash: cake: command not found

I have the Apress Beginning CakePHP book, but the suggestions in that book aren t working for me. In the Apress, book, he suggests the following solution in .profile

alias cake="php ~/Sites/blog/cake/console/cake.php"

I ve also found some other suggestions: (put an alias in .profile)

alias cake="/Applications/MAMP/bin/php5/bin/php /Users/fabian/Sites/miapp/cake/console/cake.php"

alias cake="/Applications/MAMP/bin/php5/bin/php /Applications/MAMP/htdocs/cake/console/cake.php"

I ve also tried this in terminal: /Applications/MAMP/bin/php5/bin/php ~/Sites/miapp/cake/console/cake.php bake

...but this didn t work either.

I also tried the solution in this YouTube video http://www.youtube.com/watch?v=KOBO-kEakQ0 , but that didn t work either.

So...how could I get bake working with MAMP on OS X with my projects in Sites ?

Cheers!

Sam

最佳回答

not sure what cake bake is, but it looks like it can t find cake on your path. After you set the alias in your .profile did you issue:

source ~/.profile

to update the settings in it?

问题回答

暂无回答




相关问题
PHP Framework: Ebay Like Site

I am going to be builiding a site like ebay - with all the features of ebay. Please note my payment method is limited to paypal. What would be the best PHP framework to use to build this quickly, ...

specifying date format when using $form->inputs() in CakePHP

I am wondering if there is a way to specify the date format in the forms created using CakePHP s $form->inputs(); Please note that this is not the individual $form->input() but instead $form->inputs() ...

Using DISTINCT in a CakePHP find function

I am writing a CakePHP 1.2 app. I have a list of people that I want the user to be able to filter on different fields. For each filterable field, I have a drop down list. Choose the filter ...

Assistance with CakePHP model relationships

How would I represent the following in a CakePHP model? Product ======= product_id .... Cart ==== cart_id .... Carts_Products ============== cart_id product_id quantity

Prevent controller from trying to autoload model

I am a beginning Cake user and trying to do some work on an already existing application. Running into a problem when I create a new controller. I have created StoreController and when I try to call ...

热门标签