嘗試真的很難在網上搜索關於.net core 2.0部署到aws,但發現很少的最新信息。 AWS官方文檔對於核心2.0來說已經過時了。.net core 2.0部署錯誤到AWS Beanstalk
我有一個api寫的.net core 2.0,當使用AWS Toolkit for VS 2017部署到aws時,它表示一切都很好,很健康,但是當瀏覽到應用程序時,我得到:「啓動時出錯 .NET Core 4.6.00001.0 X64 v4.0.0.0 | Microsoft.AspNetCore.Hosting版本2.0.0-rtm-26452 | Microsoft Windows 10.0.14393 |需要幫助嗎?
從AWS控制檯,它仍然說,一切都很好。是什麼賦予了?
16/10/2017 21:44:50 Successfully launched environment: BadderRankIdentity-dev
16/10/2017 21:43:50 Environment health has been set to GREEN
16/10/2017 21:41:41 Added EC2 instance 'i-05028bac256151d66' to Auto Scaling Group 'awseb-e-iemyzku76t-stack-AWSEBAutoScalingGroup-14ZRZLNXL0YML'.
16/10/2017 21:41:41 Adding instance 'i-05028bac256151d66' to your environment.
16/10/2017 21:40:47 Waiting for EC2 instances to launch. This may take a few minutes.
16/10/2017 21:39:59 Created EIP: 35.176.8.210
16/10/2017 21:39:43 Created security group named: sg-37e2165f
16/10/2017 21:39:24 Using elasticbeanstalk-eu-west-2-564641501226 as Amazon S3 storage bucket for environment data.
16/10/2017 21:39:23 createEnvironment is starting.
如果您收到'startup'錯誤,您可以啓用額外的啓動選項來輸出實際原因。看看我的博客文章。 http://pkula.blogspot.co.uk/2017/11/asp-net-core-how-to-fix-error-occurred.html – ppumkin