在Firebase中重新部署相同的Cloud Function是否会占用额外的空间? [英] Does redeployment of the same Cloud Function in firebase take up extra space?

查看:73
本文介绍了在Firebase中重新部署相同的Cloud Function是否会占用额外的空间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在firebase中部署了一个云功能,但是没有使用本地仿真器进行测试,而是将其重新部署了几次以进行调试和测试.此后,尽管我没有在Cloud Storage中存储任何文件,但我在Firebase的云存储中的使用量已超过500 MB.这是由于该功能的多次重新部署吗?如果是,删除云功能将释放此空间,还是有其他方法.

I deployed a cloud function in firebase but instead of using a local emulator for testing purposes, I redeployed it several times to debug and test. After this, I see that my usage in the cloud storage in firebase is upwards of 500 MB although I have not stored any files in the Cloud Storage. Is this due to the multiple redeployments of the function? If yes, will deleting the cloud function free up this space or is there another way.

谢谢.

推荐答案

是的,部署Cloud Function将在Cloud Storage中占用更多空间.有一个专用的存储桶,用于构建要部署的服务器映像.您可以在项目的 Google Cloud Console 中自己查看.如果您不想为存储空间付费,则可以手动删除内容.

Yes, deploying a Cloud Function will take up more space in Cloud Storage. There is a dedicated storage bucket for the build of the server images that get deployed. You can see this for yourself in the Google Cloud Console for your project. You can manually delete the content if you don't want to pay for the storage.

我认为删除该功能也不会删除存储,但是您可以自己尝试一下,并观察它是否按预期的方式工作.

I don't think that deleting the function will also delete the storage, but you can try that for yourself and observe if it works the way you expect.

另请参阅:

这篇关于在Firebase中重新部署相同的Cloud Function是否会占用额外的空间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆