The ServerProvider to use if not overridden by a system property.
The ServerProvider to use if not overridden by a system property.
Creates an ApplicationProvider for prod mode.
Creates an ApplicationProvider for prod mode. Needed so we can mock out the ApplicationProvider for testing.
Create a pid file for the current process, and register a hook to delete the file on process termination.
Start a prod mode server from the command line.
Start a prod mode server from the command line. Calls start
.
Provides an HTTP server for the dev environment
Provides an HTTP server for the dev environment
This method uses simple Java types so that it can be used with reflection by code compiled with different versions of Scala.
Provides an HTTPS-only server for the dev environment.
Provides an HTTPS-only server for the dev environment.
This method uses simple Java types so that it can be used with reflection by code compiled with different versions of Scala.
Read the server config from the current process's command line args and system properties.
Read the ServerProvider setting from the given process's properties.
Read the ServerProvider setting from the given process's
properties. If not provided, defaults to the result of
defaultServerProvider
.
Starts a Play server and application for the given process.
Starts a Play server and application for the given process. The settings for the server are based on values passed on the command line and in various system properties. Crash out by exiting the given process if there are any problems.
The process (real or abstract) to use for starting the server.
Helper for starting a Play server and application. The
main
method is the entry point to a Play server running in production mode. ThemainDev*
methods are used to start a server running in development mode.