简体   繁体   English

如何在 Visual Studio 代码上为 another.network 上的人托管实时服务器?

[英]How to host a live server on Visual Studio code for people on another network?

Currently working on creating a website with 5 other people.目前正与其他 5 人一起创建一个网站。 Is there a way to host the website so they can see the changes?有没有办法托管网站以便他们可以看到更改?

We are using the following extension's:我们正在使用以下扩展名:

Microsofts Live share, Ritwick Dey's Live server Microsoft 的 Live 共享,Ritwick Dey 的 Live 服务器

Would it be possible to make it so they can see the website update as the code changes?是否有可能做到这一点,以便他们可以在代码更改时看到网站更新? Do you know of any other tools that offer these features?您知道提供这些功能的任何其他工具吗?

The purpose of the Live Share extension from Vscode is for collaboration in coding.来自 Vscode 的Live Share 扩展的目的是为了编码协作。

If you want to host a website without going through a normal website setup process, a simple way is to use Ngrok to temporarily expose one of your computer's port to the public, then ask your collaborators to go to the Ngrok link to access your website.如果您想在不通过正常网站设置过程的情况下托管网站,一个简单的方法是使用Ngrok暂时向公众公开您计算机的一个端口,然后让您的合作者通过 go 访问 Ngrok 链接以访问您的网站。

You can use cloudflare to expose you localhost, Here's a video explaining how to set it up.您可以使用 cloudflare 来公开您的本地主机,这是一个解释如何设置它的视频。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在运行实时服务器的情况下在 Visual Studio Code 中调试 JavaScript - How to Debug JavaScript in Visual Studio Code with live-server Running 您可以在 Live 服务器扩展 Visual Studio 代码中链接子页面吗 - Can you link subpages in Live server extension Visual studio code 为什么我的实时服务器不能在 visual studio code 中工作? - why doesn't my live server work in visual studio code? 在 Visual Studio Code 中编码时如何阻止实时服务器自动打开浏览器? - How to stop live-server opening the browser automatically while coding in Visual Studio Code? Visual Studio Code Live 服务器在 HTML 页面底部注入一个白色的 div - Visual Studio Code Live server injects a white div to the bottom of the HTML page Visual Studio代码语言服务器-如何验证工作区中的所有文件 - Visual Studio Code Language Server - how to validate all files in workspace Web项目在Visual Studio Live服务器中无法正常运行 - web project not functioning correctly in Visual Studio live server 我的 Visual Studio Live 服务器扩展不能正常运行 function - My visual studio live server extension doesn't function normally 通过 Visual Studio 和节点使用 Live Server 时未捕获的引用错误? - Uncaught Reference Error using Live Server through Visual Studio and node? 在我的本地主机(IIS)被另一个环境占用时,使用 liveserver 扩展在 Visual Studio 代码中调试 javascript function - Debug a javascript function in visual studio code using liveserver extension while my local host(IIS) is occupied with another environment
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM