Skip to content

This is a simple backend app that will return 503 except for a ping endpoint so that ELB won't kill it.

Notifications You must be signed in to change notification settings

process-street/downtime-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

downtime-api

This is an app that we can replace the backend with during things like database maintenance so that it'll return 503 without going haywire.

It will return 200 for a ping endpoint to make sure that Elastic Beanstalk doesn't kill it.

Test

docker build -t downtime-api .
docker run -d -p 8000:80 --name downtime-api-app downtime-api
curl -I localhost:8000 # should return 503
curl -I localhost:8000/1/ping # should return 200  

Build for Elastic Beanstalk

zip -r maintenance-app.zip . -x .gitignore *.git* *.idea*

About

This is a simple backend app that will return 503 except for a ping endpoint so that ELB won't kill it.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages