Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Change Vite server port to 5173 #735

Merged
merged 1 commit into from
Jul 10, 2024
Merged

Conversation

Karthik99999
Copy link
Contributor

Port 5000 seems to be reserved by some MacOS process (AirTunes is referenced in the response headers). Changing the port should allow the Vite server to successfully be accessed by the django server on MacOS.

Resolves comses/infra#192

@sgfost
Copy link
Contributor

sgfost commented Jul 10, 2024

thx!

@sgfost sgfost merged commit d8664d2 into comses:main Jul 10, 2024
6 checks passed
Copy link
Member

@alee alee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good work sleuthing that one out, it seemed like the vite server was binding just fine to 5000 from the logs but looking at https://stackoverflow.com/questions/69818376/localhost5000-unavailable-in-macos-v12-monterey and https://stackoverflow.com/questions/72369320/why-always-something-is-running-at-port-5000-on-my-mac + other posts it's definitely a thing!

@alee
Copy link
Member

alee commented Jul 10, 2024

only nitpick I'd add to this for the future is to consider making this an environment variable in dev.yml and thread it through to the server and vite containers (i.e., read it from process.env or os.getenv) so we can change it in one place if we ever need to change it again

@Karthik99999 Karthik99999 deleted the viteport branch July 10, 2024 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants