I have a setup where I want to deploy a website from our SVN repository to our staging server.
In order to do this today I log in to the staging server (W2k machine) via remote desktop and run the following batch script:
set SVN_SSH=plink.exe -i privatekey.ppk -l webstaging
svn export --force svn+ssh://[email protected]/trunk/wwwroot D:\Websites\wwwroot
Now, to make deployment even easier I would like to run this bat-file from a web application.
I have set up a page to do this using the code from here http://codebetter.com/blogs/brendan.tompkins/archive/2004/05/13/13484.aspx that runs the bat-file. Output seems to be ok (though the actual output from the SVN-call is not dumped) but no files have been exported.
My feeling is that there are some problems with the ssh key pairing/tunnel issue. Though, this is not my strongest field so I'm merely guessing.
Anyone have a solution to this problem, or a better work around?