在aws上部署asp.net核心1.0网站

问题描述:

我的网站使用的是asp.net核心1.0和角度2.我有亚马逊aws帐户,我有一个正在运行的ec2实例(Windows)。现在我想将该网站部署到该实例。 我的项目结构调查就像在aws上部署asp.net核心1.0网站

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

如何部署在AWS上

我找到了一种方法来发布到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 

你的网站正在直播:)

使用远程桌面(注防火墙可能需要打开这个)

您将您的文件复制到你的服务器这个网站需要在IIS https://support.microsoft.com/en-ca/kb/323972

创建一个网站,在创建一个新的网站,它会问你什么你把文件夹在你的代码/文件。