Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/opencv/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Firebase:我们应该如何处理偶尔出现的部署错误?_Firebase_Google Cloud Functions_Firebase Cli - Fatal编程技术网

Firebase:我们应该如何处理偶尔出现的部署错误?

Firebase:我们应该如何处理偶尔出现的部署错误?,firebase,google-cloud-functions,firebase-cli,Firebase,Google Cloud Functions,Firebase Cli,我们有一个用Vue+Firebase编写的web应用程序。当我们部署函数时,它偶尔会出现类似这样的错误 functions[api(us-central1)]: Deployment error. Build failed: {"cacheStats": [{"status": "MISS", "hash": "ee61c49673c5d4aa8d5b0deb6eee0b19bf866203e030204be0aefe8dca34355f", "type": "docker_layer_cach

我们有一个用Vue+Firebase编写的web应用程序。当我们部署函数时,它偶尔会出现类似这样的错误

functions[api(us-central1)]: Deployment error.
Build failed: {"cacheStats": [{"status": "MISS", "hash": "ee61c49673c5d4aa8d5b0deb6eee0b19bf866203e030204be0aefe8dca34355f", "type": "docker_layer_cache", "level": "global"}, {"status": "HIT", "hash": "ee61c49673c5d4aa8d5b0deb6eee0b19bf866203e030204be0aefe8dca34355f", "type": "docker_layer_cache", "level": "project"}]}
当我们手动部署时,我们只是重新部署以解决问题


我们想转向自动化部署,但我想知道我们是否应该在脚本中重新部署它。如果有任何建议,我们将不胜感激

如果Firebase CLI出现故障,您必须自己弄清楚该怎么做。这可能需要编写一个循环,以保持部署直到完成。我不会无限循环,因为它可能需要手动注意。但无论如何你都得解决它。Firebase没有为您的情况提供“引导路径”