mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-25 09:51:42 -05:00
Merge pull request #1811 from alphagov/add-http-healthchecks
Add http health-check for the api app
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user