I know that shared hostings don’t allow svn installation.
I got question about whats the best way to copy website from repository to shared hosting.
Now:
My repository is on other VPS.
I do checkout to my computer and then copy all to shared hosting.
how i can copy data from repo to hosting with one step?
If you have SSH access to the target webserver, give
rsyncandscpa look:http://en.wikipedia.org/wiki/Rsync
http://en.wikipedia.org/wiki/Secure_copy
I would not advise installing Subversion server (either svnserve or via apache) on a production web server. Nor would I advise just copying, or checking out, a working copy on to the web server. Too many security issues.
Basically, what you want to do is generate a local copy of the site in your staging area, and then rsync (or scp) it to the production server.
You can do this manually, or better yet, make a small “deploy site” shell script that will:
svn exportthe version/tag you want to deploy in to a clean local folder.rsyncthis folder to the production server.Hope this helps… Good luck! 🙂