Code-server: How to preview a website?

Created on 19 Mar 2019  路  4Comments  路  Source: cdr/code-server

Description

In Visual Studio Code, I can start a front-end project with webpack-dev-server that can preview and hot reload the site in developing environment.

How can I get this?

Related Issues

question

Most helpful comment

We will be adding back a feature called cdr that will generate a URL for you and show it in the sidebar. In the meantime we can also get you the URL if you shoot us an email at [email protected] with your coder ~username~ email

All 4 comments

webpack.config.js

image
You could view the port that in your webpack config file and default url is localhost .
After starting your app you can open this at http://localhost:9000 where 9000 is your port . If you deployed this on your cloud computing server the port binds to the dev server configuration.

What if we are using Coder.com's instance? I'm assuming there will be many containers running inside one server instance which would make it impossible to access a dev server externally.

We will be adding back a feature called cdr that will generate a URL for you and show it in the sidebar. In the meantime we can also get you the URL if you shoot us an email at [email protected] with your coder ~username~ email

Closing since ide.coder.com was shut down and the self-hosted version has this feature being tracked here: https://github.com/cdr/code-server/issues/512.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pchecinski picture pchecinski  路  3Comments

justmao945 picture justmao945  路  3Comments

KSXGitHub picture KSXGitHub  路  3Comments

nol166 picture nol166  路  3Comments

lshamis picture lshamis  路  3Comments