The name of the script is your application name, and it comes in two versions, a bash shell script, and a windows. To run the application, unzip the file on the target server, and then run the script in the bin directory.
This produces a ZIP file containing all JAR files needed to run your application in the target/universal folder of your application. Your package is ready in /Users/play-developer/my-first-app/target/universal/ Packaging /Users/play-developer/my-first-app/target/scala-2.13/my-first-app_2. Main Scala API documentation successful. Main Scala API documentation to /Users/play-developer/my-first-app/target/scala-2.13/api. Wrote /Users/play-developer/my-first-app/target/scala-2.13/my-first-app_2. Set current project to my-first-app (in build file:/Users/play-developer/my-first-app/) Loading project definition from /Users/play-developer/my-first-app/project Loading global plugins from /Users/play-developer/.sbt/0.13/plugins In the Play console, simply type dist: $ dist The dist task builds a binary version of your application that you can deploy to a server without any dependency on sbt, the only thing the server needs is a Java installation. If you are using JPA, you need to take a look at Deploying Play with JPA. You must generate your own secret to use when deploying to production.
To read more about how to do this, see Configuring the application secret. §The application secretīefore you run your application in production mode, you need to generate an application secret. Let’s start by using the recommended way, creating a distribution artifact. There are several ways to deploy a Play application in production mode. When using run, on each request, Play checks with sbt to see if any files have changed, and this may have significant performance impacts on your application. We have seen how to run a Play application in development mode, however the run command should not be used to run an application in production mode. Integrating with Akka Typed & Cluster Sharding.English ▾ English българин Français 日本語 Türkçe Deploying your application