Check if the connection to mongo is fine.
WM_CONNECTION_STRING
- Mongo connection string
There is an example of the check at Whoops Monitor configuration tab or the .env
file.
WM_CONNECTION_STRING=mongodb://user:password@host/collection
- Exit code
0
- Connection is ok. - Exit code
2
- Some error appeared.
docker build -t whoopsmonitor-check-mongo-connect .
docker run --rm --env-file .env whoopsmonitor-check-mongo-connect