How deploy spring application in app engine larger than 35mb

前端 未结 2 418
太阳男子
太阳男子 2021-01-15 03:52

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 [33

相关标签:
2条回答
  • 2021-01-15 04:17

    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.

    0 讨论(0)
  • 2021-01-15 04:30

    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.

    0 讨论(0)
提交回复
热议问题