在 aws 上部署 asp.net core 1.0 网站

Deploy asp.net core 1.0 website on aws

我的网站正在使用 asp.net 核心 1.0 和 angular 2。我在亚马逊 aws 上有一个帐户,其中有一个 运行 ec2 实例 (windows)。现在我想将这个网站部署到那个实例。 我的项目结构就像

website
.
...src
   .
   ..Bussinesslayer
   ..DataAccesslayer
   ..webapp   <------startup project
     .
     ..wwwroot

如何在 aws 上部署此站点

使用远程桌面将您的文件复制到您的服务器(注意为此可能需要打开防火墙)

您需要在 IIS 中创建网站 https://support.microsoft.com/en-ca/kb/323972

在创建新站点时,它会询问您将 code/files 放在哪个文件夹中。

我找到了发布到 aws 的方法

步骤

1. Select your startup project 
2. Goto Buid > Publish < Selected Startup project >
3. Create a profile and provide location to local drive ( C:/ or d:/)
4. After publish is successfull just copy the entire content of the folder and paste in aws wwwroot folder 

您的网站现已上线:)