Skip to content

agiledigital/play2-health-checker-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

play2-health-checker-module

Build Status

To install locally

  • Clone the repository.
  • Change directory into the cloned repository.
  • Start sbt.
  • Publish to local Ivy repository with publishLocal.

To use in an application

First, edit build.sbt to add the dependency:

  libraryDependencies ++= Seq(
    ...
    "au.com.agiledigital" %% "play2-health-checker" % "5.0.0"
    ...
  )

Edit conf/application.conf to add the dependency:

play.modules.enabled += "au.com.agiledigital.healthchecker.HealthCheckerModule"

Finally, add a route to the health check controller into <conf/routes>:

# Wire in the health check controller
GET     /hc                         au.com.agiledigital.healthchecker.controllers.HealthCheckController.checkHealth(serverErrorOnFailure: Boolean ?= true)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages