`gcloud preview app deploy app.yaml` deploys all s

2019-07-31 13:57发布

When deploying a Google Managed VM Dart project not only the Docker image is deployed but also all source files. Because deployment also follows symlink all files of dependencies are deployed too.
Is it necessary to deploy all these files in addition to the Docker image?

1条回答
爱情/是我丢掉的垃圾
2楼-- · 2019-07-31 14:51

In fact only the Docker image and the app.yaml file need to be deployed. See this discussion for more details https://groups.google.com/a/dartlang.org/d/msg/cloud/MSUOFbnaaKs/7LrUzOXLtBoJ

To prevent the deployment of too many files add

skip_files:
- ^((?!app\.yaml).)*$

to the app.yaml file.

I assume the index.yaml file needs to be deployed too but there is an open question about this in the linked discussion. I'll update the answer when this got clarified.

If static_files handler are used the served files must not be excluded.

查看更多
登录 后发表回答