Play Framework 2 on Windows Server as service

Categorie

Deploy a Play Framework 2 application on Windows Server is not very simple, i'll show our solution.

First step is to build a standalone version of your app with "play dist" command from Play console, you have now a .zip file in your application_dir/dist/ directory, extract the zip in a server folder. Remove the sans-externalized application jar and add the taget/scala-2.xx/appname_2.xx.jar .

The second step is to download YAJSW and extract in the server in yajswdir/ folder and create a .conf file like: