简体   繁体   English

部署 dotnet 云 function GCP 的问题

[英]problem deploying dotnet cloud function GCP

I have a .NET Core 3.1 cloud function (zipped source code on Cloud Storage Bucket), last time I successfully deployed it a month ago.我有一个.NET Core 3.1 cloud function(云存储桶上的压缩源代码),上次我在一个月前成功部署了它。 Now I did a minor code change, zipped the source code and wanted to deploy a new version of it I get the following error:现在我做了一个小的代码更改,压缩了源代码并想要部署它的新版本,我收到以下错误:

Deployment failure: Build failed: Failed to run /bin/build: runtimeconfig.json does not exist; Error ID: 6b309792

It's really weird, I also tried to deploy the same source code that worked before and got the same error... What's the reason and how to fix it?真的很奇怪,我也尝试部署之前工作的相同源代码并得到相同的错误......这是什么原因以及如何解决它?

EDIT:编辑:
I forgot to mention that this function consists of a few projects in the following structure:我忘了提到这个 function 由以下结构的几个项目组成:

src源代码
-my-function -我的功能
-referenced_solution -referenced_solution
--project1 --project1
--project2 --project2
--project3 --project3

To let GCP understand the structure I used GOOGLE_BUILDABLE="./my-function"为了让 GCP 理解我使用 GOOGLE_BUILDABLE="./my-function" 的结构

After some experimentation I changed var GOOGLE_BUILDABLE to just "my-function" and that fixed the problem.经过一些实验后,我将 var GOOGLE_BUILDABLE 更改为“my-function”,从而解决了问题。 Still strange that it used to work fine with "./my-function"仍然奇怪它曾经与“./my-function”一起工作得很好

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM