I need to change mongo-express port number from 8081 to 8082. Because 8081 is use by react-native. Anyone knows how to do that?
In Mongo-Express the port is defined in config.default.js
as:
port: process.env.VCAP_APP_PORT || 8081
If you copy config.default.js
to config.js
as they suggest in the the README you can change the port to whatever you like. Alternatively, as you can see, you can also set the VCAP_APP_PORT
environmental variable with something like:
export VCAP_APP_PORT=8082
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With