Deploying Play applications on AWS
One niceties of the Play Framework is how easy it is do deploy an application. No application server must be deployed, no configuration file must be configured! This posts shows two ways to deploy: as a fat zip file or as a docker container.
Create a fat zip file:
Create a "fat" zip file as follows:
The created zip-files contains all needed jar file. Moreover, it contains an executable script under bin to start the application.
Create a docker image:
The following command creates a zip file which contains a Dockerfile and all resources needed by your application. The resulting zip file can for example be uploaded to Amazon Beanstalk:
./activator docker:stage cd target/docker && zip -r ../../Beanstalk.zip .