git推送后Google函数源未刷新

BT3*_*BT3 5 google-cloud-platform google-cloud-repository google-cloud-functions

我将谷歌云函数的源定义为谷歌云存储库。我更改了我的函数源代码,提交它并通过“git push --all google”推送到存储库中。我在存储库中看到新版本的函数代码,但云函数采用旧版本。

所以我需要部署我的函数的新版本。我知道我不能使用控制台来做到这一点。当我尝试使用 SDK 部署它时,我收到

gcloud functions deploy json_in_out --runtime nodejs8 --source https://source.developers.google.com/projects/mot_cz/repos/functions/demo/master/paths/json_in_out --trigger-http
ERROR: (gcloud.functions.deploy) ResponseError: status=[400], code=[Bad Request], message=[The request has errors
Problems:
Source repository URL is invalid https://source.developers.google.com/projects/mot_cz/repos/functions/demo/master/paths/json_in_out does not match the expected pattern
Run Code Online (Sandbox Code Playgroud)

Dou*_*son 1

如果您不部署修改后的功能,则不会发生任何更改。将代码推送到源代码管理还不够 - 您必须部署新代码才能开始运行它。