Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
836 views
in Technique[技术] by (71.8m points)

windows - Synchronizing Visual SVN with IIS for web development (or to any other folder)

How to get the latest version of the project file to another folder on every commit?

I'm using VisualSVN server and I think we can do this on post-commit in hooks, but I don't know how. Server is on Windows.

Actually I need to get the latest version of the file to www folder of IIS7. Simply, get the latest file to another folder.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I've added following code in post-commit hook (for copying latest version files to D:Destination).

svn export --force file:///D:/Repositories/myproject D:Destination
exit 2

It works fine for me.

If your trying to export this to a directory of website, need to change the directory permission. Visual SVN is using NETWORK SERVICE.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...