Set Up A Subversion Project

Set up a Subversion Project

Set up a Repository

Change to the directory you want for your repository. Create a repository for your project there.

cd ~/develop/repos
svnadmin create ticket

Create Project

cd ~/develop/php
mkdir -p ~/develop/php/ticket/{trunk,branches,tags}
./akelos/script/setup ~/develop/php/ticket/trunk/

Ignore the last statement in the output which reads “Please point your browser to /home/alan/develop/php/ticket/trunk in order to complete the installation process”

Import the new project into your repository, then initialize the working directory:

cd ~/develop/php/ticket
cp ~/bin/apache .
svn import %%file:///home/alan/develop/repos/ticket%% -m 'new project'
cd ..
rm -rf ticket
mkdir ticket

Check the project out of the repository into the working directory.

cd /home/alan/develop/php
svn co %%file:///home/alan/develop/repos/ticket/trunk ticket%%

Create a link in your docroot to allow Apache to access pages in your project.

su
cd /var/www/html
ln -s /home/alan/develop/php/ticket/public/ ticket
exit

Make sure that your permissions are set up correctly.

sudo ~/develop/php/ticket/apache

Initialize project

Go to the root of your new project.

cd ~/develop/php/ticket

Make sure that your permissions are set correctly:

sudo ./apache

Point your browser to http://localhost/ticket.
Initialize your project according to the wizard.
Apache will create some files and you won't have write access to them. To fix that,

sudo ./apache

Update the Subversion status for the project

  • Display the Subversion status.

cd ~/develop/php/ticket
svn status

  • For each line that starts with a '!', issue a delete for the file/directory on that line:

svn delete <file/directory>

  • For each line that starts with a '?', issue an add for the file/directory on that line:

svn add <file/directory>

  • Commit your work to the repository:

svn commit -m 'comment'

Write program

Create the needed files for your project. When you create a file, add it to Subversion with the svn add command. When Akelos creates files for you, it will display a list of the files generated. Of course, you may always repeat the procedure under Initialize project.

At this link, you will find instructions for adding Administrative Pages to your project. They will not contain the details of working with Subversion, but you should have the idea of how to work with it down pretty well by now. If you don't wish to add Administrative Pages to your project, you are now on your own to complete your work. May it be successful and enjoyable!

 
setupprojectwithsubversion.txt · Last modified: 2011/04/22 11:03 by 87.223.110.224
 

The Akelos Framework was created by Bermi Ferrer and other contributors.
Potions of the code and documentation have been ported from Ruby on Rails.

The Akelos Framework is released under the LGPL license.

"Akelos", "Akelos Framework", and the Akelos logo are trademarks of Bermi Labs All rights reserved.

Wiki driven by DokuWiki