diff --git a/.ebextensions/00-makeFiles.config b/.ebextensions/00-makeFiles.config new file mode 100644 index 0000000..e4654d5 --- /dev/null +++ b/.ebextensions/00-makeFiles.config @@ -0,0 +1,11 @@ +files: + "/sbin/appstart": + mode: "000755" + owner: webapp + group: webapp + content: | + #!/usr/bin/env bash + JAR_PATH=/var/app/current/application.jar + + # run app + java -Dspring.profiles.active=prod -Dfile.encoding=UTF-8 -jar $JAR_PATH \ No newline at end of file diff --git a/Procfile b/Procfile new file mode 100644 index 0000000..ffe0758 --- /dev/null +++ b/Procfile @@ -0,0 +1 @@ +springapp: appstart \ No newline at end of file