[英]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:
我试过了:
https://example-name.example-region.nitrous.io:8080/debug?port=5858
https://example-name.example-region.nitrous.io:8080/debug?port=5858
node-inspector --web-host 0.0.0.0
node-inspector --web-host 0.0.0.0
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.