5 Star 11 Fork 0

Gitee 极速下载/GitHub-VSC

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/gao-sun/github-vsc
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
port-forwarding.md 987 Bytes
一键复制 编辑 原始数据 按行查看 历史
gao-sun 提交于 4年前 . Update README.md (#8)

Port Forwarding

This tutorial will use create-react-app as the example and assume you have started a remote sesion. Other apps are similar.

Inside GitHub VSC terminal:

yarn create react-app my-app
cd my-app
yarn start

When you see something like:

Compiled successfully!

You can now view my-app in the browser.

  Local:            http://localhost:3000
  On Your Network:  http://10.1.0.4:3000

Note that the development build is not optimized.
To create a production build, use yarn build.

Then open the control panel in GitHub VSC, click "Enable" under port forwarding section, and change the port number to 3000:

port-forwarding

And you are all set. Click the link to see the result:

port-forwarding-result

Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/mirrors/GitHub-VSC.git
git@gitee.com:mirrors/GitHub-VSC.git
mirrors
GitHub-VSC
GitHub-VSC
master

搜索帮助