Is it possible to pass the MongoDB version for download without modifying the package.json? #590
-
| Versions
 package: mongo-memory-server What is your question?Is it possible to pass the MongoDB version for download without modifying the package.json? as stated here #316 We use https://github.com/mikhail-angelov/mongo-unit which uses your mongodb-memory-server and we would not like to use forks because they may contain build errors. The solution of transferring the desired link/version to MongoDB via env would be the best of all. | 
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
| 
 yes with environment variables, just prefix any config option at Config Options with  in your case you may want to overwrite the full download url, so use Config Options  PS: you may want to upgrade the MMS version if possible, it is known that  | 
Beta Was this translation helpful? Give feedback.
yes with environment variables, just prefix any config option at Config Options with
MONGOMS_as explained herein your case you may want to overwrite the full download url, so use Config Options
DOWNLOAD_URLlikeMONGOMS_DOWNLOAD_URL=https://your.com/path/to/the/archive.tgzPS: you may want to upgrade the MMS version if possible, it is known that
4.0.16is not existing for all platforms anymore, and later versions use higher versions already, as can be read here