eth-net-intelligence-api icon indicating copy to clipboard operation
eth-net-intelligence-api copied to clipboard

The application don't read the process.env

Open dykeiichi opened this issue 6 years ago • 1 comments

I'm trying to monitor an ethereum network (eth-netstats | eth-net-intelligence-api), I have 2 experimental nodes, and a "monitor" (all are virtual machines), and, when I try to detect information of the nodes, it, just get information of the local machine, so, I started reading the code, and the errors showed in screen, finishing whit the lib/node.js file, it have a variable (process.env) that I think, its not read because, the errors (without modifying the code) shows the default values.

I have already modified the app.json, and created an app2.json in the backend ("eth-net-intelligence-api"), and started them with the pm2, but it not worked, so, I installed a backend in each node and configured it as a localhost, that sends the information to the "monitor" host (this, modifying the lib/node.js file), it worked just to show the nodes in the page (frontend), but, don't show other information

And, this is the structure of the .json files

1

dykeiichi avatar Feb 22 '19 22:02 dykeiichi

Have you solved your problem? I have the same problem

xumeng0308 avatar May 15 '20 03:05 xumeng0308