Chapter 12. Play in Production

Application deployment, configurations, and so on are slightly different in a production environment since it is affected by various factors, such as security, load/traffic (which is expected to handle), network issues, and so on. In this chapter, we will see how to get our Play application up and running in production. This chapter covers the following topics:

  • Deploying an application
  • Configuring for production
  • Enabling SSL
  • Using a load balancer

Deploying a Play application

A Play Framework provides commands to package and deploy Play applications in production.

The run command, which we used earlier, starts the application in DEV mode and watches the code for changes. When there is a change in the code, the application ...

Get Mastering Play Framework for Scala now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.