diff --git a/terraform/aks/config/production.tfvars.json b/terraform/aks/config/production.tfvars.json index 67378529..112a533c 100644 --- a/terraform/aks/config/production.tfvars.json +++ b/terraform/aks/config/production.tfvars.json @@ -7,7 +7,7 @@ "key_vault_app_secret_name": "TRP-APP-SECRETS-PRODUCTION", "key_vault_infra_secret_name": "TRP-INFRA-SECRETS-PRODUCTION", "enable_monitoring": true, - "startup_command": ["/bin/sh", "-c", "bundle exec rails db:migrate && bundle exec rails server -b 0.0.0.0"], + "startup_command": ["/bin/sh", "-c", "./bin/app-startup.sh"], "replicas": 2, "memory_max": "1Gi", "gov_uk_host_names": [ diff --git a/terraform/aks/config/qa.tfvars.json b/terraform/aks/config/qa.tfvars.json index 48ec35f4..75785c1d 100644 --- a/terraform/aks/config/qa.tfvars.json +++ b/terraform/aks/config/qa.tfvars.json @@ -7,7 +7,7 @@ "key_vault_app_secret_name": "TRP-APP-SECRETS-QA", "key_vault_infra_secret_name": "TRP-INFRA-SECRETS-QA", "enable_monitoring": false, - "startup_command": ["/bin/sh", "-c", "bundle exec rails db:migrate && bundle exec rails server -b 0.0.0.0"], + "startup_command": ["/bin/sh", "-c", "./bin/app-startup.sh"], "replicas": 1, "memory_max": "1Gi", "gov_uk_host_names": [ diff --git a/terraform/aks/config/review.tfvars.json b/terraform/aks/config/review.tfvars.json index c2d174f5..35d7d4b8 100644 --- a/terraform/aks/config/review.tfvars.json +++ b/terraform/aks/config/review.tfvars.json @@ -8,7 +8,7 @@ "key_vault_app_secret_name": "TRP-APP-SECRETS-REVIEW", "key_vault_infra_secret_name": "TRP-INFRA-SECRETS-REVIEW", "enable_monitoring": false, - "startup_command": ["/bin/sh", "-c", "bundle exec rails db:migrate && bundle exec rails server -b 0.0.0.0"], + "startup_command": ["/bin/sh", "-c", "./bin/app-startup.sh"], "replicas": 1, "memory_max": "1Gi" } diff --git a/terraform/aks/config/staging.tfvars.json b/terraform/aks/config/staging.tfvars.json index 2764c92d..b15735cf 100644 --- a/terraform/aks/config/staging.tfvars.json +++ b/terraform/aks/config/staging.tfvars.json @@ -7,7 +7,7 @@ "key_vault_app_secret_name": "TRP-APP-SECRETS-STAGING", "key_vault_infra_secret_name": "TRP-INFRA-SECRETS-STAGING", "enable_monitoring": false, - "startup_command": ["/bin/sh", "-c", "bundle exec rails db:migrate && bundle exec rails server -b 0.0.0.0"], + "startup_command": ["/bin/sh", "-c", "./bin/app-startup.sh"], "replicas": 1, "memory_max": "1Gi", "gov_uk_host_names": [