Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pedrotroller/healthcheck

Check if your application is still working
https://github.com/pedrotroller/healthcheck

Last synced: 29 days ago
JSON representation

Check if your application is still working

Awesome Lists containing this project

README

        

# Healthcheck

## Installation

`composer require pedrotroller/healthcheck`

## Symfony integration

### Configuration (coming from Symfony Flex)

```yaml
# config/packages/healthcheck.yaml
healthcheck:
detailed: '%kernel.debug%'
```

```yaml
# config/routing/healthcheck.yaml
healthcheck:
resource: '@HealthcheckBundle/Resources/config/routing.yaml'
prefix: /healthcheck
```

## Usage

### HTTP

`GET /healthcheck` will return an empty 200 response is the service is available, a 503 else.
`OPTIONS /healthcheck` will return an empty 200 response if the helthchecking route is available.

### Console

`bin/console healthcheck`