Binding a second nodejs app (adminMongo)


#1

Hi,
I am writing an app with mongo db.
in order to manage the database during development I want to use: https://github.com/mrvautin/adminMongo .
I followed the instructions but I dont know how to expose a second app in nodejs workspace

this is the config that i think i am missing:

{
“app”: {
“host”: “10.0.0.1”,
“port”: 4321
}
}

Thanks


#3

This is incorrect. You will want to use process.env.IP for your host variable but for your port you can use 8081 or 8082. I’ve never tested adminMongo but hypothetically this can work.


#4

Thanks. All of my process.env are undefined.
Do you know why?
see the image: