This repository was archived by the owner on Sep 30, 2024. It is now read-only.
app: resolve port :9000 conflicts (change to :49000) #54466
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Apparently VS Code's Python support uses port 9000, so as long as we use it most VS Code Python devs can't run the app due to the port conflict with our services.
This PR switches the app's blobstore to listen on
:49000
instead of:9000
. My thinking for now is that we can centralize all "default endpoint" and "what host/port should I listen on?" into thedeploy
package, and for now just change ports to have a4
in front of them to reduce the change of conflicts.Later, once we have them centralized in the
deploy
package we can easily modify that code to pick an unavailable port.This also binds blobstore to
127.0.0.1
(more secure), previously it was bound tolocalhost
.Test plan
To test this I did the following:
9000
and vetted each instance, to ensure I didn't miss anything.sg start app
and confirmedsudo lsof -i -P | grep LISTEN | grep :9000
reported nothing whilesudo lsof -i -P | grep LISTEN | grep :49000
did../enterprise/dev/app/build.sh
and tested it:sg start enterprise-codeintel
starts and runs