Question
We have a php project that we would like to version control. Right now there are three of us working on a "Dev" version of the project that all have our Eclipse linked to it with just an external folder, and thus no version control.
What is the right way, and what is the best way, to version control this (not necessarily the same I dont think)
We have a SVN set up but just need to find a good way to check in and check out that lets us test on the dev server. Any ideas?
Answer
We were in a similar situation, and here's what we ended up doing:
- Set up two branches -- the release and development branch.
- For the development branch, include a post-commit hook that deploys the repository to the dev server, so you can test.
- Once you're ready, you merge your changes into the release branch. I'd also suggest putting in a post-commit hook for deployment there.
You can also set up individual development servers for each of the team members, on their workstations. I find that it speeds things up a bit, although you do have some more setup time.
We had to use a single development server, because we were using a proprietary CMS and ran into licensing issues. So our post-commit hook was a simple FTP bot.
< br > via < a class="StackLink" href=" http://stackoverflow.com/questions/4949/" >Version control PHP Web Project< /a>
0 comments:
Post a Comment