如何在同一台服务器上多次部署asp.net web应用程序?

发布于 2024-08-25 16:07:16 字数 314 浏览 4 评论 0原文

我有一个 ASP.NET 3.5 Web 应用程序,我希望允许用户在同一服务器上多次安装此 Web 应用程序。

每个 Web 应用程序都将使用它自己的数据库:

Server1
--------
WebApp1 - database1
WebApp2 - database2
WebApp3 - database3

首先,我尝试使用 web-deployment-project,但它只允许我安装一次 Web 应用程序。

我应该如何在同一服务器上多次部署Web应用程序?我应该开发自己的 winform 应用程序吗?

I have a ASP.NET 3.5 web application and I would like to allow users to install this web application multiple times on the same server.

Each web app will work with it's own database:

Server1
--------
WebApp1 - database1
WebApp2 - database2
WebApp3 - database3

Firstly I tried to use web-deployment-project, but it allows me to install my web application only once.

How I should implement deployment of web app multiple times on the same server? Should I develop my own winforms application?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

莫相离 2024-09-01 16:07:16

是的。我认为这将是最好的方法,通过编写自定义应用程序,您将能够满足您的特定需求。

您应该创建一个 winform 应用程序来模拟 Web 部署项目正在完成的过程(例如将文件复制到文件系统、在所选网站上创建新的应用程序\虚拟目录等)。

Yes. I think that will be the best way to do it and by writting your custom app you'll be able to meet your specific demands.

You should make a winform application that emulates the process being done by web deployment project (like copying files to the file system, creating new application \ virtual directory on the select website, etc.).

地狱即天堂 2024-09-01 16:07:16

您可能需要这样做:

  • 在 IIS 中创建一个虚拟目录
    每个数据库
  • 确保为 设置配置文件
    每个网络应用程序都正确
    数据库
  • 部署时,将文件复制到减去配置文件的每个目录中

。您可以编写一个小型应用程序或批处理文件来完成此操作。

You probably need to do this:

  • Create a virtual directory in IIS for
    each of your databases
  • Be sure to set the config files for
    each web application to the correct
    database
  • When you deploy, copy your files to each directory minus your config files

You could write a small application or batch file to do it.

蓬勃野心 2024-09-01 16:07:16

最好是使用 Web Deploy 3.0

Web Deploy (msdeploy) 简化了 Web 部署应用程序和网站到 IIS 服务器。管理员可以使用 Web 部署来同步 IIS 服务器或迁移到较新版本的 IIS。 Web 部署工具还使管理员和委派用户能够使用 IIS 管理器将 ASP.NET 和 PHP 应用程序部署到 IIS 服务器。

the best is to use Web Deploy 3.0

Web Deploy (msdeploy) simplifies deployment of Web applications and Web sites to IIS servers. Administrators can use Web Deploy to synchronize IIS servers or to migrate to newer versions of IIS. Web Deploy Tool also enables administrators and delegated users to use IIS Manager to deploy ASP.NET and PHP applications to an IIS server.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文