简体   繁体   English

有哪些方法可以将ASP.NET应用程序部署到多个EC2实例?

[英]What are some ways to deploy an ASP.NET application to multiple EC2 instances?

I have created an EC2 instance (called A), and want to test the open source NerdDinner on it. 我创建了一个EC2实例(称为A),并希望在其上测试开源NerdDinner。

After having created and RDS instance for my database and created a database, how can I deploy my NerdDinner to the A instance? 在为我的数据库创建了RDS实例并创建了数据库之后,如何将我的NerdDinner部署到A实例?

And after that, I want to create two other EC2 instances (B,C) that can run the same app with the same database. 之后,我想创建另外两个可以使用相同数据库运行相同应用程序的EC2实例(B,C)。 Is that what Load balancing is doing? 这是负载均衡正在做什么?

If I update the app, do I have to deploy the app each time on the three instances (A,B,C)? 如果我更新应用程序,是否每次都要在三个实例(A,B,C)上部署应用程序?

Amazon Elastic Beanstalk will do all this for you. Amazon Elastic Beanstalk将为您完成所有这些工作。 The even have example documentation using the Nerd Dinner app as an example! 甚至还有使用Nerd Dinner应用程序的示例文档作为示例!

Elastic Beanstalk .NET Elastic Beanstalk .NET

You can try new cloud deployment tool Appveyor . 您可以尝试新的云部署工具Appveyor It will script your database and deploy it to EC2 instances created on-the-fly. 它将编写数据库脚本并将其部署到即时创建的EC2实例。 You can create new EC2 instances for web with Appveyor and use the same database instance. 您可以使用Appveyor为Web创建新的EC2实例,并使用相同的数据库实例。

Disclaimer: I'm Appveyor developer. 免责声明:我是Appveyor开发人员。

If you don't want to deal loadbalancer configuration and manual deployments, you should take a look at AppHarbor which automated all of this for you. 如果您不想处理负载均衡器配置和手动部署,您应该看看AppHarbor为您自动完成所有这些。

(Disclosure: I'm co-founder of AppHarbor ) (披露:我是AppHarbor的联合创始人)

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

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