Mobile app version of vmapp.org
Login or Join
BetL925

: Deploy repository to production server? I have a hosted SVN repository with assembla. it has an address like: https://subversion.assembla.com/svn/my-repository-name/ Using TortoiseSVN I can checkout

@BetL925

Posted in: #HostedSvn #Subversion

I have a hosted SVN repository with assembla.

it has an address like:


subversion.assembla.com/svn/my-repository-name/

Using TortoiseSVN I can checkout from this repository and commit to it.

But how would I deploy to a production server?

(I have not created a production server yet, I want to understand how this is going to work first).

10.04% popularity Vote Up Vote Down


Login to follow query

More posts by @BetL925

3 Comments

Sorted by latest first Latest Oldest Best

 

@Phylliss660

You could deploy your files from your subversion server to your webserver using puppet. Vcsdeploy gives you lots of options to do this www.practicalclouds.com/content/guide/pclouds-vcsdeploy-deploy-stuff

10% popularity Vote Up Vote Down


 

@Berumen354

Best practice would be to do an svn export then move the checkout into the web-root. Having .svn entries in your folder can lead to open sourcing your code. At a minimum you need to have your server not allow read access to the .svn entries. Not having them there at all is the best option.

Its fairly easy to write a bash or Phing script to do the checkout and move.

10% popularity Vote Up Vote Down


 

@Sent6035632

One option is to have a local checkout, export it to another location, and upload the exported version (no .svn folders)

An alternative, if you have SSH access to the deployment server, and SVN is installed there, is to do a checkout on the server, using the branch/tag of your choice. When there is an updated version of the repo to make live, just log in on the server and run svn up. Pretty simple.

This technique does include the .svn folders. I'm not certain what a surfer could do with those, but it would be a good idea to use htaccess or similar to prevent web access to those folders.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme