Missing documentation for running scripts
I wasn't able to easily run the scripts in /scripts/utils
.
First I tried to log in to webapp-02
and run
$ /opt/node/v10-stable/bin/node ./gitter-webapp/scripts/utilslist-group-admins.js --uri group-name
But the script was unable to connect to mongo
I resulted to ssh tunneling to production mongo replica and running script locally (not optimal thanks to the risk of keeping the tunnel open and running npm test
and using the prod database). I wonder what is the preferred approach? I'm happy to document it in /scripts/README.md
Can you @MadLittleMods share your approach?