cubedro / eth-net-intelligence-api

Ethereum Network Intelligence API
http://tinyurl.com/ofndjbo
GNU General Public License v3.0
327 stars 344 forks source link

The application don't read the process.env #267

Open dykeiichi opened 5 years ago

dykeiichi commented 5 years ago

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

xumeng0308 commented 4 years ago

Have you solved your problem? I have the same problem