Skip to content

Commit

Permalink
Merge pull request #753 from trade-tariff/bau-fix-deploys
Browse files Browse the repository at this point in the history
BAU: Fix issue with deployment
  • Loading branch information
amberstarlight committed Jan 18, 2024
2 parents ed52733 + 8265a31 commit 9ca0594
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Expand Up @@ -8,7 +8,7 @@ files: |
repos:
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.83.5
rev: v1.86.0
hooks:
- id: terraform_fmt
- id: terraform_validate
Expand Down
1 change: 1 addition & 0 deletions terraform/locals.tf
Expand Up @@ -4,4 +4,5 @@ locals {
uk = "http://backend-uk.tariff.internal:8080"
xi = "http://backend-xi.tariff.internal:8080"
}
govuk_app_domain = var.environment != "production" ? var.environment == "development" ? "tariff-duty-calculator-dev" : "tariff-duty-calculator-staging" : "tariff-duty-calculator"
}
16 changes: 4 additions & 12 deletions terraform/main.tf
Expand Up @@ -42,20 +42,12 @@ module "service" {
value = "true"
},
{
name = "NEW_RELIC_APP_NAME"
value = "tariff-${local.service}-${var.environment}"
name = "GOVUK_APP_DOMAIN"
value = "${local.govuk_app_domain}.london.cloudapps.digital"
},
{
name = "NEW_RELIC_ENV"
value = var.environment
},
{
name = "NEW_RELIG_LOG"
value = "stdout"
},
{
name = "NEW_RELIC_DISTRIBUTED_TRACING"
value = "false"
name = "GOVUK_WEBSITE_ROOT"
value = "https://www.gov.uk"
},
{
name = "RAILS_ENV"
Expand Down

0 comments on commit 9ca0594

Please sign in to comment.