0

嘗試使用Visual Studio 2017 AWS工具包擴展將基本'開箱即用'.Net Core 2 Web Api部署到AWS Beanstalk,無法部署。使用AWS工具包在Visual Studio 2017中使用.Net Core 2部署到Beanstore

下面是一個嘗試部署的示例日誌,您可以看到它就好像它沒有打包以便正確部署。已嘗試使用清單文件,但它沒有任何區別。記錄.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的可能性,但我的理解是應該開箱即可這麼說。

+0

亞馬遜支持已確認存在問題,並且正在調查中,當我收到回覆時將更新此主題。 –

+0

對此有何更新?我有同樣的問題。 – WebSight

回答

2

因此,經過多次挖掘,並沒有從AWS支持的很多幫助,我發現這是WebApi的一個問題,這要歸功於另一個問題的另一個答案。大量的試驗和錯誤導致了一個發現,即如果您將wwwroot文件夾添加到項目中,並確保它已應對輸出或在其中包含佔位符文件,它應該部署正常!

+0

謝謝你,已經放棄了AWS及其支持。 –

相關問題