CakePHP Current Paths not correct for cake bake -
my currect paths prevent me executing cake bake. reply: path project want bake? [c:\xampp\htdocs\musiclib\myapp] > next details reveal have gone wrong. in xampp shell next results when execute command, 'cake':
app : musiclib path: c:\xampp\htdocs\musiclib\ - application want bake current paths: -app: musiclib -working: c:\xampp\htdocs\musiclib -root: c:\xampp\htdocs -core: c:\xampp\htdocs\musiclib\lib
my environment variable path ends ;c:\xampp\htdocs\musiclib\cake\lib\console; httpd-vhosts.conf contains
<virtualhost *:80> serveradmin admin@localhost.com documentroot "c:/xampp/htdocs/musiclib/app/webroot" servername musiclib:80 serveralias localhost <directory "c:/xampp/htdocs"> options indexes followsymlinks includes execcgi order allow,deny allow </directory> </virtualhost>
how should prepare paths utilize cake bake?
it appears running bake shell project root , therefor cake doesn't observe app path. can seen app : musiclib
bit in output. folder not app folder, obviously. seek 1 of these things:
run app
folder. cd
app
, then:
..\lib\cake\console\cake bake
use -app
flag specify path app folder. when within project root (htdocs/musiclib
), run:
lib\cake\console\cake bake -app app
where lastly app
relative path app folder are.
cakephp cakephp-bake
No comments:
Post a Comment