Hi, Thien, thanks for your response.
I had to say that I got all this after seem to be succesfull installation of phalcon-devtools.
Firstly I found phalcon commands
works from my home directory only..
In .bash_profile I found this (same commands repeated several times):
export PTOOLSPATH=/Users/me/phalcon-devtools/
export PATH=$PATH:/Users/me/phalcon-devtoos
export PTOOLSPATH=/Users/me/phalcon-devtools/
export PATH=$PATH:/Users/me/phalcon-devtools
export PTOOLSPATH=/Users/me/phalcon-devtools/
export PATH=$PATH:/Users/me/phalcon-devtools
export PTOOLSPATH=/Users/me/phalcon-devtools/
export PATH=$PATH:/Users/me/phalcon-devtools
After removing this rows phalcon commans
works from every location (it returns Phalcon DevTools (2.0.0) ans so on.
I found that each time I run sudo phalcon migration generate
something adds two export commans to my bash_profile.
I've tried phalcon migration generate
as a wild guess and got this:
Notice: Use of undefined constant APP_DIR - assumed 'APP_DIR' in /Users/me/Documents/Aptana Studio 3 Workspace/MyProject/app/config/config.php on line 7
Call stack...
then the same message for HOST_DIR.
and finally
Error: Cannot load database configuration
Should I define all constants and database connectivity settings in config.php for migration script to work?
Why devtools altering my .bash_profile, given that I've added devtoools dir to $PATH myself prefiously?