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

查看:22
本文介绍了将 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.

实际上我需要将最新版本的文件放到 IIS7 的 www 文件夹中.只需将最新的文件放到另一个文件夹中即可.

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 正在使用网络服务.

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天全站免登陆