Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/09/2012, 02:54
Avatar de carlosmedinna
carlosmedinna
 
Fecha de Ingreso: julio-2012
Ubicación: Barcelona
Mensajes: 10
Antigüedad: 11 años, 9 meses
Puntos: 0
Problemas al ejecutar los shells de cakephp en le terminal de MAC

Buenas:

Os comento, soy bastante nuevo en esto de los shells de terminal o de la consola, hace ya ucho instale un cakePHP en una consola de Ubuntu después de deseperar a mi profe, ahora bien, ya no hay profe y trabajo con un mac, he intentado hacer lo mismo que hice la vez anterior, pero por aquellas cosas de la informática, pues no da resultado.

He entrado por terminal hasta el directorio en el que sé que se encuetra la "consola" de cake en mi proyecto, le escribo las instrucciones y esto es lo que acierta a decirme, primero he probado con php cake bake all , que es lo mismo que hice en Ubuntu, pero me muestra lo siguiente.

iMac-de-mac1:Console mac20$ php cake bake all
################################################## ##############################
#
# Bake is a shell script for running CakePHP bake script
# PHP 5
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright 2005-2012, Cake Software Foundation, Inc.
#
# Licensed under The MIT License
# Redistributions of files must retain the above copyright notice.
#
# @copyright Copyright 2005-2012, Cake Software Foundation, Inc.
# @link http://cakephp.org CakePHP(tm) Project
# @package app.Console
# @since CakePHP(tm) v 2.0
# @license MIT License (http://www.opensource.org/licenses/mit-license.php)
#
################################################## ##############################
LIB=$(cd -P -- "$(dirname -- "$0")" && pwd -P) && LIB=$LIB/$(basename -- "$0")

while [ -h "$LIB" ]; do
DIR=$(dirname -- "$LIB")
SYM=$(readlink "$LIB")
LIB=$(cd "$DIR" && cd $(dirname -- "$SYM") && pwd)/$(basename -- "$SYM")
done

LIB=$(dirname -- "$LIB")/
APP=$(dirname $(cd $(dirname $0) && pwd))

exec php -q "$LIB"cake.php -working "$APP" "$@"



Pues bien, le hago caso a lo de exec y :
iMac-de-mac1:Console mac20$ exec php -q "$LIB"cake.php -working "$APP" "$@"

Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /Applications/MAMP/htdocs/franquicias/lib/Cake/Cache/CacheEngine.php on line 59

Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /Applications/MAMP/htdocs/franquicias/lib/Cake/Cache/CacheEngine.php on line 59

Welcome to CakePHP v2.2.1 Console
---------------------------------------------------------------
App : app
Path: /Applications/MAMP/htdocs/franquicias/app/
---------------------------------------------------------------
Current Paths:

-app: app
-working: /Applications/MAMP/htdocs/franquicias/app
-root: /Applications/MAMP/htdocs/franquicias
-core: /Applications/MAMP/htdocs/franquicias/lib

Changing Paths:

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

Available Shells:

[CORE] acl, api, bake, command_list, console, i18n, schema, test, testsuite, upgrade

To run an app or core command, type cake shell_name [args]
To run a plugin command, type cake Plugin.shell_name [args]
To get help on a specific command, type cake shell_name --help


[Proceso completado]


Y una vez me muestra lo de [Proceso completado] se queda colgado, he cerrado y vuelto a abrir la consola y cuando vuelvo a escribir el cake bake all vuelve a lo primero que os he mostrado.

Dónde falla, o qué es lo que debo hacer ??? Si hay alguien por ahi que pueda echarme un cable gracias !!!

Saludos.