Skip to content

Commit

Permalink
Fix health check
Browse files Browse the repository at this point in the history
  • Loading branch information
ebrett committed Nov 2, 2023
1 parent 2baf34c commit 94a6211
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
1 change: 1 addition & 0 deletions .github/workflows/azure-deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ env:
ARM_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
ARM_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
DOCKER_IMAGE: ghcr.io/dfe-digital/help-for-early-years-providers
RELEASE_VERSION: ${{ github.sha }}

jobs:
build-and-deploy:
Expand Down
21 changes: 11 additions & 10 deletions .github/workflows/azure-deploy-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ name: 'HfEYP App Deploy [Azure - STAGE]'

on:
workflow_dispatch:
#inputs:
# candidate:
# description: 'Create release candidate version ("rcx.x.x")'
# type: string
# required: true
# ref:
# description: 'Git ref or branch to deploy'
# type: string
# required: true
# default: main
inputs:
candidate:
description: 'Create release candidate version ("rcx.x.x")'
type: string
required: true
ref:
description: 'Git ref or branch to deploy'
type: string
required: true
default: main
push:
branches:
- ER-861-hfeyp-staging
Expand All @@ -29,6 +29,7 @@ env:
ARM_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
ARM_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
DOCKER_IMAGE: ghcr.io/dfe-digital/help-for-early-years-providers
RELEASE_VERSION: ${{ inputs.candidate || github.sha }}

jobs:
build-and-deploy:
Expand Down
1 change: 1 addition & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Rails.application.routes.draw do
get "/check" => "application#check"
get "/health" => "application#check"

# Note These have to be above the wildcard route
get "/404", to: "errors#not_found", via: :all
Expand Down

0 comments on commit 94a6211

Please sign in to comment.