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.
Create a pid file for the current process, and register a hook to delete the file on process termination.
The ServerProvider to use if not overridden by a system property.
The ServerProvider to use if not overridden by a system property.
Create a Netty server from the given application and server configuration.
Create a Netty server from the given application and server configuration.
The application.
The server configuration.
A started Netty server, serving the application.
Create a Netty server from the given router and server config.
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 server config from the current process's command line args and system properties.
Read the ServerProvider setting from the given process's configuration.
Read the ServerProvider setting from the given process's
configuration. If not configured, returns None. If you need
a ServerProvider you can may want to use the
defaultServerProvider
when this method returns None.
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.
Bootstraps Play application with a NettyServer backend.