将Visual SVN与IIS同步以进行Web开发(或任何其他文件夹) [英] Synchronizing Visual SVN with IIS for web development (or to any other folder)

查看:429
本文介绍了将Visual SVN与IIS同步以进行Web开发(或任何其他文件夹)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在每次提交时将最新版本的项目文件发送到另一个文件夹?

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

我正在使用VisualSVN服务器,我想我们可以在帖子上执行此操作 - 挂钩,但我不知道怎么做。服务器在Windows上。

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.

实际上我需要将该文件的最新版本提供给 \www 文件夹IIS7。简单地说,将最新文件发送到另一个文件夹。

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

推荐答案

我在post-commit hook中添加了以下代码(用于复制最新文件)版本文件到 D:\Destination )。

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

它适用于我。

如果您尝试将其导出到网站目录,则需要更改目录权限。 Visual SVN正在使用NETWORK SERVICE。

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

这篇关于将Visual SVN与IIS同步以进行Web开发(或任何其他文件夹)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆