简体   繁体   English

在AWS的单个EC2实例上部署多个asp.net应用程序

[英]Deploy multiple asp.net application on single EC2 instance of AWS

I need to deploy one application having different database based on region ie application remains same but the database changes according to the url. 我需要根据区域部署一个具有不同数据库的应用程序,即应用程序保持不变,但是数据库根据url进行更改。

for example 例如

  1. for India database will be db_india 印度数据库将为db_india
  2. for Singapore database will be db_sg 对于新加坡数据库将为db_sg
  3. for USA database will be db_usa 美国数据库将为db_usa

Hence I need to delpoy a application into 3 different subfolder on same instance so that there web.config can be different 因此,我需要将应用程序分配到同一实例的3个不同的子文件夹中,以便web.config可以不同

So I need to know if there is any method other than FTP so that we can deploy application to subfolder or I can use any other method to accomplish this. 因此,我需要知道FTP之外是否还有其他方法,以便我们可以将应用程序部署到子文件夹,或者可以使用任何其他方法来完成此操作。

I do something similar currently using MS web deploy. 我目前使用MS Web Deployment做类似的事情。

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

It's a bit of a pain to set up, but once you do, you can deploy to your site directly from within Visual Studio. 设置有些麻烦,但是一旦完成,就可以直接从Visual Studio部署到站点。 You can publish to multiple sites by importing or configuring them as different endpoints. 您可以通过将它们导入或配置为不同的端点来发布到多个站点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM