Merge pull request #1811 from alphagov/add-http-healthchecks

Add http health-check for the api app
This commit is contained in:
Sakis
2018-04-11 15:51:05 +01:00
committed by GitHub
2 changed files with 3 additions and 1 deletions

View File

@@ -11,7 +11,7 @@ status = Blueprint('status', __name__)
@status.route('/_status', methods=['GET', 'POST'])
def show_status():
if request.args.get('elb', None):
if request.args.get('simple', None):
return jsonify(status="ok"), 200
else:
return jsonify(

View File

@@ -51,6 +51,8 @@ memory: 1G
applications:
- name: notify-api
health-check-type: http
health-check-http-endpoint: /_status?simple=true
- name: notify-api-db-migration
command: sleep infinity