-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Prout to
guardian/story-packages
This is prompted by the outage caused by #184, where new PROD instances of https://packages.gutools.co.uk/ couldn't start up. Although more specific testing would catch this issue before it went live, as a last resort, it's good to know that a pull request has _not_ gone live after merging, and that's one of the things Prout can help with - posting a 'OVERDUE' message against the PR. See also: * https://github.com/guardian/prout * https://www.theguardian.com/info/developer-blog/2015/feb/03/prout-is-your-pull-request-out * Other examples of configuring Prout: * guardian/mobile-apps-api#2507 * guardian/apple-news#232
- Loading branch information
Showing
4 changed files
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"checkpoints": { | ||
"PROD": { "url": "https://packages.gutools.co.uk/_healthcheck", "overdue": "20M" } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
package controllers | ||
|
||
import app.BuildInfo | ||
import conf.ApplicationConfiguration | ||
import play.api.libs.ws.WSClient | ||
import play.api.mvc.ControllerComponents | ||
|
||
class StatusController(config: ApplicationConfiguration, components: ControllerComponents, wsClient: WSClient) extends StoryPackagesBaseController(config, components, wsClient) { | ||
def healthStatus = Action { request => | ||
Ok("Ok.") | ||
Ok(s"Ok.\ngitCommitId:${BuildInfo.gitCommitId}") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters