Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Play Framework Production on Windows

The documentation states that there is no production support for the Play Framework on Windows.

Note play is not supporting windows in production mode, therefore stage and start won’t work under windows

I was wondering why this is the case.

Also, is this due to limitations that will be overcome, or is Windows not a first-class target platform?

like image 527
carrier Avatar asked Jun 19 '13 01:06

carrier


People also ask

How do I run play framework in Windows?

To run the Play framework, you need JDK 6 or later. If you are using MacOS, Java is built-in. If you are using Linux, make sure to use either the Sun JDK or OpenJDK (and not gcj, which is the default Java command on many Linux distros). If you are using Windows, just download and install the latest JDK package.

How do I run a play Framework project?

Generate configuration To debug, start your application with sbt -jvm-debug 9999 run and in Eclipse right-click on the project and select Debug As, Debug Configurations. In the Debug Configurations dialog, right-click on Remote Java Application and select New. Change Port to 9999 and click Apply.

Is Play framework still used?

Play is rock-solid and used by hundreds of thousands of Java and Scala developers every month. Play is still extremely relevant to today's application and web development and has a passionate and very capable community around it ensuring that it has many good years left.


2 Answers

We have had success with using the Commons Daemon to run Play applications on Windows in production.

We use dist to package the application for distribution, then install as a Windows service using the Commons Daemon.

like image 88
kpollard Avatar answered Sep 30 '22 13:09

kpollard


The stage feature uses chmod, see this line of code. As for the dist and start feature I am not quite sure. As @biesior pointed out, this ticket might provide a workaround.

like image 21
EECOLOR Avatar answered Sep 30 '22 12:09

EECOLOR