Friday, July 31, 2009

How to install SVN for web development (dev sites/live sites)?

I was looking into installing subversioning onto my linux dedicated server. I do web development on it and would like to not only use the box as a central repository, but also set it up so that from that repository, I can easily move content to a development sites as well as live sites.





Basically the development sites would be mirrors of the final committed files in the repository. Then the live sites would be updated to reflect the content of the development sites when triggered somehow.





Any tips on the best way to do this? I already have SVN installed on my server. Just need to know the next steps to get things set up.

How to install SVN for web development (dev sites/live sites)?
Look into using SVN hooks to do the dirty work.





have your website root be a checkout of your repository - then after you have a good change that you want to move to live commit it to the repository and the SVN hook for post-commit can run an update on the website root which will update your live site.





Make sure the perms of your website root and the svn repo are the same as the user your are running as, also not root

rose garden

No comments:

Post a Comment