简体   繁体   English

Nitrous.io上Meteor App的服务器端调试

[英]Server-side debugging for Meteor App on Nitrous.io

I've got a simple Meteor app running on a Nitrous box. 我在Nitrous盒子上运行了一个简单的Meteor应用程序。 I'd like to be able to use node-inspector for server-side debugging (as described here ), but I'm unable to get to the console. 我希望能够使用node-inspector服务器端调试(如描述在这里 ),但我无法进入控制台。

My Meteor app is running locally on the box at http://0.0.0.0:3000/ , and I can view it in Chrome by following the guide here . 我的Meteor应用程序在http://0.0.0.0:3000/的框中本地运行,我可以按照此处的指南在Chrome中查看它。 When I then run node-inspector , I get this message: 当我然后运行node-inspector ,我收到以下消息:

Node Inspector v0.8.3
Visit http://127.0.0.1:8080/debug?port=5858 to start debugging.

How can I get to this address? 我怎样才能到达这个地址? I've tried: 我试过了:

  • Navigating to https://example-name.example-region.nitrous.io:8080/debug?port=5858 导航到https://example-name.example-region.nitrous.io:8080/debug?port=5858
  • Running: node-inspector --web-host 0.0.0.0 正在运行: node-inspector --web-host 0.0.0.0
  • Running: node-inspector --web-host https://example-name.example-region.nitrous.io 正在运行: node-inspector --web-host https://example-name.example-region.nitrous.io

Thoughts? 思考? Is there a way I can get to this console? 有没有办法可以进入这个控制台?

You should change the url on the box, 你应该改变盒子上的网址,

usually you just run the box running the meteor command 通常你只需运行运行meteor命令的方框

cd workspace
cd myAPP
meteor

and it works, but now you should run this commands. 它的工作原理,但现在你应该运行这个命令。

cd workspace
cd myApp
ROOT_URL=http://machinename.abc1-2.nitrousbox.com meteor

Now run again node-inspector 现在再次运行node-inspector

you should get something like 你应该得到类似的东西

Visit http://machinename.abc1-2.nitrousbox.com:8080/debug?port=5858 to start debugging.

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM