[英]Deploy Spring Boot Application on Google App Engine
Google Standard App Engine has a limit of roughly 35MB for its application deployment. Google Standard App Engine的应用程序部署限制约为35MB。 I wanted to deploy a Spring Boot based application to GAE, but just by referencing
我想将基于Spring Boot的应用程序部署到GAE,但仅通过引用
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
runtimeOnly 'com.h2database:h2'
}
the app already exceeds 40MB. 该应用程序已超过40MB。 Is there a way to let App Engine know to fetch these files during run time rather than compiling them into one big war file?
有没有一种方法可以让App Engine知道在运行时获取这些文件,而不是将它们编译成一个大的war文件?
The 32MB limitation is only for individual files . 32MB的限制仅适用于单个文件 。
The old way of deploying (appcfg.sh) worked over the uncompressed war file and maven ( mvn clean package appengine:deploy
) uploads individual files so none of both ways can hit a limitation because of the 'whole war size' 旧的部署方式(appcfg.sh)在未压缩的war文件上工作,而maven(
mvn clean package appengine:deploy
)上传单个文件,因此,由于“整体战争规模”,这两种方法均无法达到限制
See this spring-boot app that I am playing with. 查看我正在玩的这个春季启动应用程序。 I've just added a dummy 23MB file to it and everything works:
我刚刚向其中添加了一个虚拟的23MB文件,并且一切正常:
What I am trying to say is that I am not familiar with gradle but I would find it hard to believe they've made such a mistake on the newest deployment tool. 我要说的是,我对gradle并不熟悉,但我很难相信他们在最新的部署工具上犯了这样的错误。
Have you really hit this limitation? 您是否真的达到了此限制? In such a case, can you share the command you use to deploy and the exact error?
在这种情况下,您可以共享用于部署的命令以及确切的错误吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.