Using bake on shared hosting Cakephp
I'm trying to get bake working on my subdomain which is under shared hosting.
Is there a way we can get t开发者_Python百科his working? I know how to connect to server via ssh shell but then what do I do after that?
First cd
to the directory where the cake script is. On a Linux webserver, this would probably be something like ~/cake/console/
, if you've put the CakePHP libs outside your web-accessible directories. If you've put everything into your web directory you'll probably have to go somewhere like ~/www/cake/console/
.
Then simply type ./cake bake
and take it from there.
You shouldn't have to do anything with environment variables. This is only necessary if you want to be able to run the cake console from any directory. I find it less of a hassle to just cd
into the cake console's directory and run it using ./cake
.
same as local machine cd <path_to_console>
cake
if you do not know path_to_console
ask for host support,
also path_to_console
may be in environment path then just use cake
in all dirs
精彩评论