Page 1 of 1
SVN and PHP
Posted: Wed Apr 30, 2008 1:36 pm
by LonelyProgrammer
Hi,
I am currently using the services of a SVN for source control (
http://www.assembla.com). I am just wondering how on earth can I always view the most recent revision of my PHP scripts while using SVN?
Re: SVN and PHP
Posted: Fri May 02, 2008 1:49 pm
by RobertGonzalez
Generally as you develop your code you check it in to the repository. This way you are always working the most bleeding edge code while the most revision is the stuff that is the last know code to work.
Of course this is not the full breadth of using code control. Get into tagging and branches and things get a lot more interesting.
Re: SVN and PHP
Posted: Sat May 03, 2008 9:49 pm
by LonelyProgrammer
Yes, the code in the repo is the most recent, so for testing, I would like to access it from the web browser and play with it. Is there a way to set this up?
Re: SVN and PHP
Posted: Tue May 13, 2008 12:41 pm
by LonelyProgrammer
Er, *bump*
I think I didn't phrase my question correctly. The SVN repo always hold the most recent copy of the code. So how do I get the URL to it to view for testing of the forms and pages and etc. (that is, viewing it as a normal web page).
Re: SVN and PHP
Posted: Tue May 13, 2008 12:47 pm
by RobertGonzalez
You typically don't view the code that is in the SVN repo as application code. Generally you checkout the code to the location that you are testing the code.
If you are developing the code locally, development should be taking place on your local server then checked in to the repo. Once the code works as expected locally, you check it out onto the web server where the files will ultimately live and run it there.