Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3b15f13

Browse files
authored
fix: fix apps being unavailable until rebuild (#4395)
1 parent9b1ff43 commit3b15f13

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-- nothing
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
-- There was a mistake in the last migration which set "subdomain" to be the
2+
-- opposite of the deprecated value "relative_path", however the "relative_path"
3+
-- value may not have been correct as it was not consumed anywhere prior to this
4+
-- point.
5+
--
6+
-- Force all workspace apps to use path based routing until rebuild. This should
7+
-- not impact any existing workspaces as the only supported routing method has
8+
-- been path based routing prior to this point.
9+
--
10+
-- On rebuild the value from the Terraform template will be used instead
11+
-- (defaulting to false if unspecified).
12+
UPDATE"workspace_apps"SET"subdomain"= false;

‎provisioner/terraform/resources.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,6 @@ func ConvertResources(module *tfjson.StateModule, rawGraph string) ([]*proto.Res
235235
}
236236
}
237237

238-
subdomain:=attrs.Subdomain
239238
for_,agents:=rangeresourceAgents {
240239
for_,agent:=rangeagents {
241240
// Find agents with the matching ID and associate them!
@@ -247,7 +246,7 @@ func ConvertResources(module *tfjson.StateModule, rawGraph string) ([]*proto.Res
247246
Command:attrs.Command,
248247
Url:attrs.URL,
249248
Icon:attrs.Icon,
250-
Subdomain:subdomain,
249+
Subdomain:attrs.Subdomain,
251250
Healthcheck:healthcheck,
252251
})
253252
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp