Play has the following two modes while running an application:
- Development mode
- Production mode
Until now, to run our Play application, we have been using the command run on the Play console. When the application server starts, it runs under the development mode. In the development mode, the server would be launched with the auto-reload feature enabled. This means that for each request, Play will automatically detect any change in the source files, recompile them, and restart the server for faster development. This mode is not recommended in production, as it can significantly impact the performance of the application.
To run the application in production mode, we first package our complete application along with its other JAR dependencies in a single ZIP file. To do this, run the dist command on the Play console. The dist task builds a binary version of...