Is there a way to serve files from a SVN repository, on the same server, to apache www directory? I want to show my boss/customer the most recent version of a project without uploading it by FTP.
I'm using Ubuntu 10.
|
|
|
There's no reason why not - checkout the directory to the place you've configured Apache to serve pages from (eg the www directory). When you want to update it, "svn update" will do it. You can get complicated by adding a automatic export function to a post-commit hook but the above method is very simple and easy. |
|||
|
|
Actually apache has a module to serve a repository ( |
|||
|
|
|
You have to create a POST-COMMIT hook to do the job of sending the files to your web root from the SVN repo. Every time you make a commit it will call this simple script that will push the updated files to the folder of your choice. Here is a quick tutorial that we use to do the same thing: http://www.frenssen.be/content/using-subversion-automatically-update-live-website |
|||
|
|
|
As pconcepcion notes, Apache has the If you're using If you're using |
|||
|
|