Skip to content

idocme/wait-for-mongo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wait for mongo to start

Just pass the full uri of the mongodb connection, set the time or use the default.

Install

npm install -g wait-for-mongodb-slim

Usage

wait-for-mongo --uri mongodb://usr:pwd@localhost:27017/nameOfDB --t 2

--t / --time is the interval time to check the connection. (in seconds)
--uri is the uri to try to connecto to.

The application will disconnect from mongodb and exit when done.

About

node app waits for mongodb to be alive and exit.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published