Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PlugStatus

A plug for responding to status requests.

Installation and docs

Add a dependency to your application's mix.exs file:

defp deps do
  [{:plug_status, github: "MikeAlbertFleetSolutions/plug_status"}]
end

then run mix deps.get.

Usage

defmodule MyServer do
  use Plug.Builder
  plug PlugStatus

  # ... rest of the pipeline
end

Using a custom path is easy:

defmodule MyServer do
  use Plug.Builder
  plug PlugStatus, path: "/status"

  # ... rest of the pipeline
end

Build

To create docker image:

docker build --pull --tag plug_status -f Dockerfile .

Testing

To create docker container from image during development:

docker run -it --rm -v ${WORKSPACE}/plug_status:/app -w /app plug_status

To run the unit tests:

mix deps.get
mix test

About

A plug for responding to status requests

Resources

Stars

1 star

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages