小编Ehs*_*san的帖子

在 WebStorm 中与“Code with me”共享本地服务器

JetBrains ` Code With Me页面中,我可以看到一段提到:

您可以使用 Code With Me 进行实时协作、编辑代码、共享服务器以及运行调试会话。

但是,我看不到如何共享服务器。例如,如果我在本地启动 API 服务器,我找不到通过Code With Me共享它的方法。

我只是在寻找一种通过Code With Me共享本地服务器的方法,而不是任何第三方网站等。

我将不胜感激任何帮助

pair-programming jetbrains-ide webstorm

5
推荐指数
1
解决办法
5292
查看次数

process.env.port变量上的Node.js和MS Azure

考虑以下Node.js代码:

var http = require('http');
var port = process.env.port || 1337;
http.createServer(function (req, res) {
    res.writeHead(200, { 'Content-Type': 'text/plain' });
    res.end('Hello World\n');
}).listen(port);
Run Code Online (Sandbox Code Playgroud)

它在Microsoft Azure中不起作用,因为process.env.port变量中的字符串值(例如:\.\ pipe\e289ed7e-b57b-46bb-8bba-ad8cd1f1529cf).为什么会这样?

azure node.js

3
推荐指数
1
解决办法
6265
查看次数