Closed
Description
Once a workspace is created, developers will need to access arbitrary ports on their workspace to preview web apps they are developing. With desktop IDEs and SSH, there are methods to access these ports. However, using the web (code-server) isn't possible.
Lame MVP:
- Web UI on workspace page to access port
┌──────────┐ ┌──────┐ Port │ 8080 │ │ Go │ └──────────┘ └──────┘
- Open in new tab
- Path-based access (e.g
dev.coder.com/@bpmct/myworkspace/port/8080
) - Subdomain-based access (e.g
bpmct-myworkspace-8080.dev.coder.com
)- Many apps are extremely hard to configure to run on a path or don't work (e.g
create-react-app
)
- Many apps are extremely hard to configure to run on a path or don't work (e.g
- Only reachable to the developer or Coder superadmin
Workaround:
-
If code-server is present,manually navigate to port proxy
https://dev.coder.com/@bpmct/myworkspace/apps/code-server/proxy/3000 # or https://dev.coder.com/@bpmct/myworkspace/apps/code-server/absproxy/3000
-
Use ngrok or similar service within the workspace
-
Use SSH or desktop IDE to port forward to local machine
Metadata
Metadata
Assignees
Labels
No labels