Skip to content

Commit

Permalink
Merge pull request #246 from hmcts/feature/config-dir-terraform-changes
Browse files Browse the repository at this point in the history
added new env variable for node config
  • Loading branch information
Mo-Lala84 authored Feb 25, 2020
2 parents 6b90907 + 3e5d70c commit 9e27753
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions infrastructure/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ module "app" {
PUI_ENV = "${var.env}"
NODE_ENV = "${var.env}"
NODE_CONFIG_ENV = "${var.env}"
NODE_CONFIG_DIR = "${var.node_config_dir}"
WEBSITE_NODE_DEFAULT_VERSION = "12.13.0"

S2S_SECRET = "${data.azurerm_key_vault_secret.s2s_secret.value}"
Expand Down
5 changes: 5 additions & 0 deletions infrastructure/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,8 @@ variable "ao_no_proxy" {
variable "app_insights_enabled" {
default = "1"
}

variable "node_config_dir" {
// for Windows
default = "D:\\home\\site\\wwwroot\\config"
}

0 comments on commit 9e27753

Please sign in to comment.