Skip to content

Commit

Permalink
feat: generate launchSettings ports
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarmil committed Nov 26, 2023
1 parent ec63d3a commit 4764306
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 7 deletions.
40 changes: 40 additions & 0 deletions content/application/.template.config/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,46 @@
{"condition": "(!nightly)", "value": ""}
]
}
},
"port_server": {
"type": "generated",
"generator": "port",
"replaces": "PORT_SERVER_HTTP",
"parameters": {
"low": "5000",
"high": "5049",
"fallback": "5000"
}
},
"port_client": {
"type": "generated",
"generator": "port",
"replaces": "PORT_CLIENT_HTTP",
"parameters": {
"low": "5050",
"high": "5099",
"fallback": "5050"
}
},
"port_server_ssl": {
"type": "generated",
"generator": "port",
"replaces": "PORT_SERVER_SSL",
"parameters": {
"low": "44300",
"high": "44349",
"fallback": "44320"
}
},
"port_client_ssl": {
"type": "generated",
"generator": "port",
"replaces": "PORT_CLIENT_SSL",
"parameters": {
"low": "44350",
"high": "44399",
"fallback": "44360"
}
}
},
"sources": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:51066/",
"sslPort": 0
"applicationUrl": "http://localhost:PORT_CLIENT_HTTP/",
"sslPort": PORT_CLIENT_SSL
}
},
"profiles": {
Expand All @@ -20,7 +20,7 @@
"commandName": "Project",
"launchBrowser": true,
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
"applicationUrl": "http://localhost:51067/",
"applicationUrl": "http://localhost:PORT_CLIENT_HTTP/",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:6012",
"sslPort": 44334
"applicationUrl": "http://localhost:PORT_SERVER_HTTP",
"sslPort": PORT_SERVER_SSL
}
},
"profiles": {
Expand All @@ -19,8 +19,8 @@
"Server": {
"commandName": "Project",
"launchBrowser": true,
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
"applicationUrl": "https://localhost:5001;http://localhost:5000",
"inspectUri": "{wsProtocol}://{url.hostname}:{url.prt}/_framework/debug/ws-proxy?browser={browserInspectUri}",
"applicationUrl": "https://localhost:PORT_SERVER_SSL;http://localhost:PORT_SERVER_HTTP",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
Expand Down

0 comments on commit 4764306

Please sign in to comment.