[英]Elastic Beanstalk Can't Deploy my ASP Net Core application on Linux
I've got a basic ASP Net Core application, developed on Windows, which I'm trying to deploy into an Elastic Beanstalk linux environment.我有一个基本的 ASP Net Core 应用程序,在 Windows 上开发,我正在尝试将其部署到 Elastic Beanstalk linux 环境中。
When I deploy, I get the following error:部署时,我收到以下错误:
2020/12/02 23:47:10.550207 [ERROR] An error occurred during execution of command
[app-deploy] - [CheckProcfileForDotNetCoreApplication]. Stop running the command.
Error: there is no .runtimeconfig.json file for your single application.
Please provide a valid application
The problem is, there is a *.runtimeconfig.json file in my deployed.zip file!问题是,我的 deploy.zip 文件中有一个 *.runtimeconfig.json 文件!
The structure of my zip file is loosly:我的 zip 文件的结构松散:
./Config/configs.xml
./Config/secrets.xml
...tons of .dll & .so files
PublicWeb.dll
PublicWeb.runtimeconfig.json
So I'm mystified as to what the problem is.所以我很困惑问题是什么。
So I finally fixed it, by following these steps:所以我最终通过以下步骤修复了它:
I'll note that the zip artifact was much smaller when built on linux for linux.我会注意到,在 linux 上为 linux 构建时,zip 工件要小得多。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.