Spring Boot and ebextensions

后端 未结 5 1363
走了就别回头了
走了就别回头了 2021-02-20 11:54

I\'m trying to add an .ebextensions folder to the root level of my jar to be deployed to AWS elastic beanstalk.

My folder structure is:

main:
--src
--re         


        
5条回答
  •  无人共我
    2021-02-20 12:19

    Here is how i did it:
    Ran mvn install which generated app-0.0.1-SNAPSHOT.jar
    After that i have created .ebextensions/nginx/conf.d/proxy.conf on root project path which has client_max_body_size 25M; - in my case was to increase maximum upload size.
    Using Github Actions and ubuntu-latest for the runner - the zip command is supported out of the box and i did it with this command

    cp target/app-0.0.1-SNAPSHOT.jar . && zip -r app-new.zip .ebextensions/ app-0.0.1-SNAPSHOT.jar
    

    Basically the app-new.zip is the file that i am uploading to ElasticBeanstalk

提交回复
热议问题