簡體   English   中英

在Visual Studio 2017中使用AWS Toolkit通過.Net Core 2部署到Beanstalk

[英]Using AWS Toolkit In Visual Studio 2017 To Deploy to Beanstalk With .Net Core 2

嘗試使用Visual Studio 2017 AWS Toolkit擴展將基本的``開箱即用''.Net Core 2 Web Api部署到AWS Beanstalk,但部署失敗。

以下是嘗試部署的示例日志,您可以看到它好像沒有正確打包以進行部署。 嘗試使用清單文件,但沒有任何區別。 作為記錄,.Net Core 1.1可以很好地部署。

26/09/2017 01:04:10         terminateEnvironment completed successfully.
26/09/2017 01:04:09         Deleting SNS topic for environment blueostrichdesign-test.
26/09/2017 01:04:07         Deleted EIP: 52.56.251.100
26/09/2017 01:03:52         Deleted security group named: sg-84fbe6ed
26/09/2017 01:03:11         Removed instance 'i-0e10ac9a19db43b5b' from your environment.  (Reason: Instance is in 'terminated' state)
26/09/2017 01:02:05         Waiting for EC2 instances to terminate. This may take a few minutes.
26/09/2017 01:01:49         terminateEnvironment is starting.
26/09/2017 00:59:01         Create environment operation is complete, but with errors. For more information, see troubleshooting documentation.
26/09/2017 00:58:02         Environment health has been set to GREEN
26/09/2017 00:57:58         Command execution completed on all instances. Summary: [Successful: 0, Failed: 1].
26/09/2017 00:57:58         [Instance: i-0e10ac9a19db43b5b ConfigSet: Infra-EmbeddedPreBuild, Hook-PreAppDeploy, Infra-EmbeddedPostBuild, Hook-EnactAppDeploy, Hook-PostAppDeploy, Hook-PostInit, Infra-WriteVersionOnStartup] Command failed on instance. Return code: 1 Output: null.
26/09/2017 00:57:56         Error occurred during build: Command hooks failed
26/09/2017 00:57:53         Error during deployment: Could not find a part of the path 'C:\\inetpub\\AspNetCoreWebApps\\app\\appsettings.Development.json'.
26/09/2017 00:56:52         Added EC2 instance 'i-0e10ac9a19db43b5b' to Auto Scaling Group 'awseb-e-kezahpkrmy-stack-AWSEBAutoScalingGroup-DJU0DMK4CG3B'.
26/09/2017 00:56:52         Adding instance 'i-0e10ac9a19db43b5b' to your environment.
26/09/2017 00:56:08         Waiting for EC2 instances to launch. This may take a few minutes.
26/09/2017 00:55:19         Created EIP: 52.56.251.100
26/09/2017 00:55:03         Created security group named: sg-84fbe6ed
26/09/2017 00:54:44         Using elasticbeanstalk-eu-west-2-292368120263 as Amazon S3 storage bucket for environment data.
26/09/2017 00:54:43         createEnvironment is starting.

有沒有其他人碰到過這個問題,如果可以的話,他們是如何解決的。 在網絡上找不到其他幫助或我應該做的事情。

我還沒有探索Docker的可能性,但是我的理解是可以這么說。

因此,經過大量的研究並且沒有得到來自AWS支持的大量幫助,我發現這是WebApi的問題,這要歸功於另一個問題的另一個答案。 大量的試驗和錯誤導致發現,如果將wwwroot文件夾添加到項目中並確保它已被處理到輸出中或在其中包含占位符文件,它應該可以很好地部署!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM