简体   繁体   English

在Google App Engine上部署Spring Boot应用程序

[英]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文件?

They are not limiting file size to 35mb. 它们不限制文件大小为35mb。 We still deployed over 100mb projects. 我们仍然部署了100多个项目。 在此处输入图片说明

But one thing, Make sure you are using 但有一件事,请确保您正在使用

App Engine Standard Version

instead of App Engine Flexible Version 而不是App Engine灵活版本

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.

相关问题 使用 Gitlab CI 将 Spring 引导应用程序部署到 Google App Engine? - Deploy Spring Boot application to Google App Engine using Gitlab CI? Spring Boot - 将应用程序部署到 Google Cloud App 引擎但缺少 app.yaml - Spring Boot - Deploy application to Google Cloud App engine but missing app.yaml 如何使用Eclipse IDE在Google App Engine(GAE)上部署Spring Boot应用程序? - How to deploy Spring Boot application on Google App Engine(GAE) using Eclipse IDE? 在 Google App Engine 中部署 Spring boot gradle 应用 - Deploy Spring boot gradle app in Google App Engine 部署失败:Google App Engine 上的 Kotlin Spring Boot 应用 - Deploy Failed : Kotlin Spring Boot app on the Google App Engine 将我的 Spring Boot 应用程序部署到谷歌云计算机引擎中 - Deploy my spring boot application into google cloud computer engine 如何在 Google Cloud Compute Engine 中部署 Spring Boot 应用程序? - How to deploy Spring Boot application in Google Cloud Compute Engine? 如何在 GCP App Engine 上同时部署 Spring 启动和 React 应用程序? - How to deploy Spring boot and React application together on GCP App Engine? 如何将Spring Boot(1.3.6)或任何Spring Boot项目(连接到云数据库)部署到Google App Engine? - How to deploy Spring Boot (1.3.6) or any Spring Boot project (connection to cloud database) to Google App Engine? 使用应用引擎部署本地主机上的谷歌云应用引擎和 Spring Boot 错误 - google cloud app engine and spring boot bug on localhost deploy with app engine
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM