Skip to content

Commit 238c6e4

Browse files
authored
Fix Production deployment (#10)
1 parent 5cf973e commit 238c6e4

4 files changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/DeployEverything.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ jobs:
109109

110110
- run: |
111111
cp PocketDDD.BlazorClient/PocketDDD.BlazorClient/wwwroot/appsettings.${{ inputs.env }}.json PocketDDD.BlazorClient/PocketDDD.BlazorClient/wwwroot/appsettings.Production.json
112+
if: ${{ inputs.env != 'Production' }}
112113
113114
- run: |
114115
apiToken=$(az staticwebapp secrets list --name pocketddd-${{ inputs.env }}-blazorclient --query "properties.apiKey" -o tsv)

.github/workflows/DeployMainBranch.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
name: Deploy Branch Push
1+
name: Deploy Main to Production
22
on:
33
push:
44
branches:
55
- 'main'
6+
- 'fixProdDeployment'
67

78
jobs:
8-
deploy_to_test:
9+
deploy_to_production:
910
uses: ./.github/workflows/DeployEverything.yml
1011
with:
1112
env: "Production"

terraform/outputs.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ output "api_server_url" {
22
value = "https://${azurerm_linux_web_app.api_server_web_app.default_hostname}/"
33
}
44

5-
# output "client_app_public_url" {
6-
# value =
7-
# }
5+
output "client_app_public_url" {
6+
value = "https://${azurerm_static_web_app_custom_domain.custom_domain.domain_name}"
7+
}

tfvars/Production.tfvars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
env = "prod"
1+
env = "production"
22
sql_db_sku = "Basic"
33
sql_max_storage = "2"
44
api_app_service_sku = "B1"

0 commit comments

Comments
 (0)