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

fix: explicitly state port for vite commands run from within devcontainer #176

Merged
merged 2 commits into from
Dec 30, 2024

Conversation

SamStaijen
Copy link
Contributor

@SamStaijen SamStaijen commented Dec 28, 2024

Issue

When using newer versions of docker (or devcontainers, I updated both at the same time), devcontainers do not properly forward the internal ports. The tunnel appears to exist on the host, and in the docker shell you can curl a webpage, but the connection is broken or something.

Fix

add explicit host url to the dev and preview commands, so the url as well as the port get auto recognized.

@SamStaijen SamStaijen linked an issue Dec 28, 2024 that may be closed by this pull request
@SamStaijen SamStaijen self-assigned this Dec 28, 2024
stickyPiston
stickyPiston previously approved these changes Dec 30, 2024
Copy link
Member

@stickyPiston stickyPiston left a comment

Choose a reason for hiding this comment

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

頑張ったね!

@SamStaijen
Copy link
Contributor Author

whoops, did an oopsy and removed the preview keyword in the preview command. Please re-review, and if all looks good, re-approve

Copy link
Member

@stickyPiston stickyPiston left a comment

Choose a reason for hiding this comment

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

頑張ったね!

@SamStaijen SamStaijen merged commit 5fac7e0 into master Dec 30, 2024
@SamStaijen SamStaijen deleted the fix/dead-devcontainer branch December 30, 2024 14:48
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.

forwarding ports automatically when using devcontainers
2 participants