I work with a client who has a dedicated Linux based Plesk server. The website (say
example.com) is live and since there are huge modifications usually required, it is very difficult to make them work directly on live. The server had no SVN, only FTP.
I created a subdomain
staging.example.com and put files there through FTP so that client can see the modifications prior to making them live. Needless to say, it is a pain in * for me to remember each and every file related to each task, upload and test on staging and then again recall what were the files and do it again for live server. I have 'successfully failed' several times in doing this flawlessly.
I want to use SVN now. I have managed to install SVN using SSH (I have full access to it) and a repository (in
/var/www/vhosts/example.com/svn/repos) but further settings seem to be ambiguous to me. I want the setup to be like this:
- SVN Server (running at
svn.example.com- already done)
- 'master' copy at
/var/www/vhosts/example.com/staging(Not sure if 'master' has some specific meanings in SVN. I just mean the main copy)
- A working directory at
/var/www/vhosts/example.com/httpdocsso that I can svn update to make my changes live
- Another working directory at my computer where I would do actual work.
My plan is that I'll do work on my computer, commit it so it can be tested on staging and if everything is fine then update from live site to make my changes live.
Please guide me how I can achieve this. Also note that I'm a programmer, not system administrator so my plan might have some problems. If you think so please indicate an alternative solution. I have been using SVN for a long time now but that was just checkout-commit-update-resolve only, no setup. This is why I need help now.