How do I re-use assigned ports? #4539
Answered
by
davidfowl
NikiforovAll
asked this question in
Q&A
Replies: 3 comments 2 replies
-
You can set ports and passwords manually. That's the best option when you are using external tools. The Aspire.Hosting.* packages should have methods that let you specify the port and password (if they generate one on the fly). |
Beta Was this translation helpful? Give feedback.
0 replies
-
var usersDb = builder
.AddPostgres("dbserver", pAdmin, password)
.WithDataVolume()
.WithPgAdmin()
.AddDatabase("users-db"); |
Beta Was this translation helpful? Give feedback.
1 reply
-
From my point of view, it would be great to persist randomly assigned ports between sessions without assigning values explicitly in AppHost. var builder = DistributedApplication.CreateBuilder(args).WithPersistentExternalPorts(); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Context:
As a developer, I want to be able to configure my tooling and use it between application restarts.
E.g: I configured tooling to interact with a database and want to use it between application restarts. How would I achieve that?
Currently, I constantly check the content of connection strings and logs to find corresponding services. The workflow is somewhat tedious and interrupts me from the "flow".
Beta Was this translation helpful? Give feedback.
All reactions