Skip to content

Commit

Permalink
Set windows os as default for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelldi committed Aug 12, 2024
1 parent 09014bf commit 139366e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ open class AppServiceInfoAdvancedPanel<T>(
private lateinit var dockerRadioButton: Cell<JBRadioButton>

init {
operatingSystem = OperatingSystem.LINUX
operatingSystem = OperatingSystem.WINDOWS

Disposer.register(this, textName)

Expand All @@ -103,8 +103,8 @@ open class AppServiceInfoAdvancedPanel<T>(
}
operatingSystemGroup = buttonsGroup {
row("Operating System:") {
linuxRadioButton = radioButton("Linux", OperatingSystem.LINUX)
windowsRadioButton = radioButton("Windows", OperatingSystem.WINDOWS)
linuxRadioButton = radioButton("Linux", OperatingSystem.LINUX)
windowsRadioButton.component.addItemListener { onOperatingSystemChanged(it) }
dockerRadioButton = radioButton("Docker", OperatingSystem.DOCKER)
.visible(false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class AppServiceInfoBasicPanel<T>(
private lateinit var dockerRadioButton: Cell<JBRadioButton>

init {
operatingSystem = OperatingSystem.LINUX
operatingSystem = OperatingSystem.WINDOWS

Disposer.register(this, textName)

Expand All @@ -52,8 +52,8 @@ class AppServiceInfoBasicPanel<T>(
}
operatingSystemGroup = buttonsGroup {
row("Operating System:") {
linuxRadioButton = radioButton("Linux", OperatingSystem.LINUX)
windowsRadioButton = radioButton("Windows", OperatingSystem.WINDOWS)
linuxRadioButton = radioButton("Linux", OperatingSystem.LINUX)
dockerRadioButton = radioButton("Docker", OperatingSystem.DOCKER)
.visible(false)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class FunctionAppConfigProducer {
val rgName = group?.name ?: "rg-$appName"
val result = FunctionAppConfig.buildDefaultFunctionConfig(rgName, appName)
result.appSettings = mutableMapOf()
result.runtime = RuntimeConfig().apply { os = OperatingSystem.LINUX }
result.runtime = RuntimeConfig().apply { os = OperatingSystem.WINDOWS }
subscription?.let { result.subscriptionId = it.id }
group?.let { result.region = it.region }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class WebAppConfigProducer {
val result = AppServiceConfig.buildDefaultWebAppConfig(rgName, appName, "zip")
result.appSettings = mutableMapOf()
result.pricingTier = PricingTier.FREE_F1
result.runtime = RuntimeConfig().apply { os = OperatingSystem.LINUX }
result.runtime = RuntimeConfig().apply { os = OperatingSystem.WINDOWS }
subscription?.let { result.subscriptionId = it.id }
group?.let { result.region = it.region }

Expand Down

0 comments on commit 139366e

Please sign in to comment.