我们有一个小的java项目需要部署 它包括 9000 多个文件
命令:mvn gcloud:部署
但是我得到了日志:
...
[INFO] INFO: Uploading [/home/steven/work/idigisign/target/appengine-staging/__static__/node_modules/rx/src/core/linq/observable/when.js] to [7dfb30ad32893c5042dba03601f006a40419fab0]
[INFO] DEBUG: Uploading [/home/steven/work/idigisign/target/appengine-staging/assets/global/plugins/bootstrap-switch/js/bootstrap-switch.min.js] to [7e0725897d7b99c3c33b56915d202e2dde552ea9]
[INFO] INFO: Uploading [/home/steven/work/idigisign/target/appengine-staging/assets/global/plugins/bootstrap-switch/js/bootstrap-switch.min.js] to [7e0725897d7b99c3c33b56915d202e2dde552ea9]
[INFO] DEBUG: Uploading [/home/steven/work/idigisign/target/appengine-staging/node_modules/is-redirect/index.js] to [7e0afe4775bf7f8558665760171c01948c22f771]
[INFO] INFO: Uploading [/home/steven/work/idigisign/target/appengine-staging/node_modules/is-redirect/index.js] to [7e0afe4775bf7f8558665760171c01948c22f771]
[INFO] DEBUG: Uploading [/home/steven/work/idigisign/target/appengine-staging/node_modules/rxjs/src/util/Map.ts] to [7e11722f4cd9ce91ec99b97710fbc4e7f40be09d]
...
每分钟约 50 个 所以它将花费 180 分钟...
速度特别慢
谁能帮帮我?
最佳答案
设置环境变量CLOUDSDK_APP_USE_GSUTIL=1
再试;这使用不太可靠但速度更快的文件上传代码路径(有计划加快默认代码路径)。
关于google-app-engine - 今天的 App Engine 部署异常缓慢?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37659318/