I have a PHP website backed by a MySQL database and a small team of programmers submitting code to subversion. Typically we write code, test it locally, commit to subversion and then copy changed files to a hidden area for online testing.
However mistakes can be made. Occasionally I want to refresh the site so that I know, without a doubt, that the site code and database really represents what’s in subversion. I’d like to get as close to a one click solution as possible so that it’s foolproof.
What’s the best way to do that?
BTW, if it matters, we develop on windows machines.
The export can be automatically done after every commit with a post-commit hook:
http://svnbook.red-bean.com/en/1.5/svn.ref.reposhooks.post-commit.html
You can setup the hook to automatically export the project inside the hidden area for the online testing.