Domanda

I am developing a project in php with svn subversioning system using Visual SVN server.

I have some websites in my private webserver(IIS 7) and I would like to let the trunk folder of the project in my repository be accessible via IIS.

is that possible to be done?

È stato utile?

Soluzione

If you really asked about

"How to publish my code from repository in order to use it inside IIS-powered site"

You have to read about Subversion post-commit hooks, which can do any operations with data in repo, in your case - svn export to the root of your IIS-site, or, if you'll prefer to see site-root as Working Copy svn up

Altri suggerimenti

VisualSVN installs Apache httpd as a web server.

I don't believe you can install Subversion to work under IIS. However, that was an answer from 18 months ago, so things might have changed, but I doubt it. I did find a Google Code project called RocketSVN, but it looks like it was deprecated.

I found a commercial package at SVNISapi.

one solution is to create a .bat file server side that would be executed every day/week.

here's the simple batch file

svn export -r HEAD file:///C:/repo/proj C:\root\proj --force

remove dir 'cause the export command doesn't allow to overwrite the existent folder.

the C:\root\ is the iis7 folder.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top