2

I have developed a Scala/Play webapp and now I am trying to deploy it on production. What is the recommended "best way" of doing that?

The documentation mentions only runnig it from play console, which does not seem very robust (in case of machine restarts etc).

There are apporaches to wrap the app into a war file and deploy on Tomcat7 (e.g. play2war), but they do not seem to be actively developed (e.g. there is only beta support for 2.3, the plugin is not available from maven repo etc).

What is the right way of doing this?

mohit
  • 4,968
  • 1
  • 22
  • 39
jfu
  • 1,700
  • 1
  • 22
  • 31

1 Answers1

2

If you host the application on Windows then take a look at Yet Another Java Service Wrapper which wraps the application in a Windows service that will keep it running, even after restarts.

If you run it on Linux then take a look at Supervisord and Monit, which monitors the application and starts, restarts and stops it when needed.

See the following links for tutorials:

Community
  • 1
  • 1
Rovak
  • 778
  • 1
  • 6
  • 13
  • Nothing of that looks like a 'ready-to-go' solution that I'd like to use on production (like e.g. tomcat for Servlet-based webapps). Is there anything that the play community recommends as the 'first choice'? – jfu Nov 10 '14 at 20:18