sillsdev / web-languageforge

Language Forge: Online Collaborative Dictionary Building on the Web and Phone.
https://languageforge.org
MIT License
44 stars 29 forks source link

backup.mjs script needs Mongo authentication #1827

Open rmunn opened 3 months ago

rmunn commented 3 months ago

Now that Mongo authentication has been deployed to staging and production, the backup.mjs script no longer works, because I had it sending Mongo queries without auth. I need to add the ability to take authentication parameters from environment variables, and/or possibly from command line args. I'll start with env vars as command line args will be a more extensive rewrite (currently the script only takes positional parameters, which is easy — but taking command line args will require adding a parser library, because there are too many corner cases such as -- to do the parsing by hand).