How deploy spring application in app engine larger

2019-03-01 12:42发布

I try mvn appengine:deploy but receive

ERROR: (gcloud.app.deploy) Cannot upload file [my-file], which has size [40375610] (greater than maximum allowed size of [33554432]). Please delete the file or add to the skip_files entry in your application .yaml file and try again.

I know app engine deploy support file up until 35mb but i dont know how deploy files large more 35mb

2条回答
叼着烟拽天下
2楼-- · 2019-03-01 13:17

I hope that 35M is not all Java code! I suspect you have a lot of static files. If so, you can upload these to GCloud Storage and server them from there instead.

查看更多
倾城 Initia
3楼-- · 2019-03-01 13:28

I'm not sure if you really want to stick with Standard Environment. (You probably do if your application doesn't need to be running 100% of the time). However App Engine Flex allows you to deploy really big jar. As far as I know a fat jar of size over 400MB is deployable.

查看更多
登录 后发表回答