Google Cloud 部署太慢 [英] Google Cloud deploy so slow
问题描述
我正在使用 Google Cloud NodeJS 托管.当我将应用程序部署到 Google Cloud 时,我感到非常惊讶.每次部署都很慢.第一次可能会很慢,但是之后,当我更改一些 js 或 html 文件并重新部署时,它仍然很慢.
I'm using Google Cloud NodeJS hosting. I'm so surprised when I deploy apps to Google Cloud. It's very slow for each deployment. It could be slow the first time, but after that, when I change some js or html file and re-deploy, it is still slow.
部署一个小项目需要5~10分钟吗?我怎样才能加快速度?
Does it take 5~10 minutes to deploy a small project? How could I speed it up?
推荐答案
nodejs 应用程序使用基于 docker 文件的灵活环境,需要时间来创建/更新.请参阅 我该怎么做在 Google Cloud Platform 上加速 Rails Docker 部署?
The nodejs apps use flexible environment based on docker files which take time to create/update. See How can I speed up Rails Docker deployments on Google Cloud Platform?
此外,当重新部署同一版本时,更新服务需要一些额外的时间,请参阅 为什么google appengine 部署需要几分钟来更新服务
Also, when re-deploying the same version some additional time is required to update the service, see why does google appengine deployment take several minutes to update service
潜在的兴趣:
这篇关于Google Cloud 部署太慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!