如何在IIS中以编程方式部署网站 [英] How to deploy a website programatically in IIS

查看:69
本文介绍了如何在IIS中以编程方式部署网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的专家,我有一个MVC.NET Web应用程序,我很乐意在我的服务器上重新部署更多实例,但名称不同。



这是第一个复杂功能:

我想构建一个应用程序,我只设置参数并自动为我部署。



这里第二个:

我想为网站重新创建MSSQL数据库,因为网站创建的次数很多。



有可能这样做吗?



最简单的方法是什么?

Dear Experts, I have a MVC.NET web application which I would be glad to re-deploy on my server on more instances but different names.

And here comes the first complication:
I would like to build an application where I only set the parameters and it deploys for me automatically.

Here the second:
I would like to re-create the MSSQL DB for the site as many times as the site gets created.

Is there a possibility to do this?

What is the easiest way?

推荐答案

使用允许您在IIS中创建虚拟目录的安装程序。

或者您可能希望在安装后在Windows应用程序中运行首次安装向导创建数据库并部署IIS。
Use a Setup that lets you to create Virtual directories in IIS.
or you might want to run a First Time Setup Wizard in Windows Application after installation to create Database and deploy IIS.


查看Web部署工具:



http://www.iis.net/downloads/microsoft/web-deploy [ ^ ]
Look at Web Deploy tool:

http://www.iis.net/downloads/microsoft/web-deploy[^]


这篇关于如何在IIS中以编程方式部署网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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