Edmund Hertle wrote:
2009/1/20 Nathan Rixham <nrix...@gmail.com>
you don't have to locally develop, you can develop however you want :) svn
is just version controlling all your files to make it easier to team work
and to rollback code. you then tag good versions of the code in svn so you
have a permanent easy to access good version of the site (which you then
copy and do what you want with, download, ftp whatever) keeps you safe :)

Yeah, I think I mix up (web)server and rep some times...

But to point out an example:
There is a script on the (develop) webserver, the same locally and of course
in the rep.
So I start working on the local copy and now want to try it. So what should
I do? Copying directly to the webserver, testing and than later after some
more work commit to the rep?

Or other way: Start working on script, commit to rep, than update
(develop)webserver,  than testing....?

how you get the script to testing is up to you; as for svn commit frequently and often, the more versions you have in svn the better, every time you add to svn you have a backup.

I commit to branch overy time i hit save, i commit to trunk everytime there is no errors. (thats just me though - how you use is up to you, the question is do you see benefit to using source control/svn, if yes, use it however you want)

If way one would work without problems, well I think I would just do it that
way, but won't there be some problems when copying files to server, than
changing files locally and instead copying again to webserver committing it.
So now updating webserver will cause some probs because I think SVN will try
to merge both files if possible? But as of my working style the files on the
server should not be merged but overwritten with the files of SVN?

I hope I explained my prob a bit more...

a merge is something you do manually, most of the time you just commit (overwrite) and svn will log the lines of code that changed - sometimes when multiple people work on the site you get a conflict, both changed the same lines - this is when you need to manually review and manually merge, SVN will tell you the files conflict and prompt you to merge (still with the option to overwrite, or to "update", take the other persons copy)


And with SCP: I'm forced to work on a windows server and there was no ftp at
all so I was forced to use windows explorer and those (don't know how it's
called on english) "networkdevice connection" which is 10 times more
frustrating than using ftp (funnily it works smoother when using linux to
connect to...). So I will look into WinSCP and hope it will work.. thanks
for advice


if server is a windows server maybe forget scp.. may be more trouble than it is worth. but if server is linux and you develop on windows then yes use winscp or tortoise svn, or both :)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to