Wednesday, 12 April 2017

Setting up rtail and nodejs to display console.log output in browser

The rtail documentation does not clearly explain how to setup their rtail environment. Their basic setup is explained as follows:

  1. npm install -g rtail

In the server terminal

  1. node server.js 2>&1 | rtail --id "api.myproject.com"

In the rtails terminal

  1. DEBUG=rtail:* rtail-server

Once both are started and some output from the server terminal begins, I do see the rtails terminal showing the same console output. Since rtails uses UDP communication, I made sure to enable all UDP ports (0 - 65535).

The README.md file here states there the UDP port is 9090 and the web host port is 8080. Yet when I run the rtails server multiple times, the webhost port is changing. I did also check the port the server is registering to rtails that it also does not server up the rtails page.

Is there a correct solution to get the rtail-server to display on the web browser?



via JMM

No comments:

Post a Comment