Add your CakePHP project to Google Code
Want to use Subversion with your CakePHP project. This is how you do it:
For developing I got a local copy of my project. Unless you got Subversion installed on your webserver, you have to start importing the local one. Mine in located here:
/Users/gersh/Sites/cakephp/APPS/gersh
- First you have to move your config file outside of your project tree since your project will have public access on Google Code. To do this you simply copy database.php out and rather include it by putting these lines inside your app/config/database.php file:
(?php<br>include dirname(__FILE__) . '/../../database.php.inc';
- Google Code has already created a regualar Subversion structure:
/branches (empty)
/tags (empty)
/trunk (content of cakephp app folder goes here) - To import your project, open Terminal.app, and from inside of your /app folder run this command:
svn import https://gersh-no.googlecode.com/svn/trunk <br> --username username -m "Initial import"
- Now that your project is hosted at Google Code, you can use SvnX – a mac SVN client to checkout your project. Note that it is a bug in SvnX with importing from https protocol, so you have to do a svn list command. Just accept it permantly
svn list https://projectname.googlecode.com/svn/trunk/
- You might need to reset the permissions for your app/tmp directory in order to make the cache to work:
chmod -R 777 tmp