Wait for connections to MongoDB and redis to be established on startup. Added configuration option to specify redis DB.

This commit is contained in:
Zaid Abdulla committed 2014-07-19 06:54:09 +03:00
1 parent 28394af707
commit 1c902af363
5 files changed
+84 -47

No files matched your search

+4 -1
View File
@@ -398,4 +398,7 @@ else
response.writeHead 404
response.end('404 Not Found')
server.listen config.API_PORT, config.API_INTERFACE
db.connect((err) ->
throw err if err
server.listen config.API_PORT, config.API_INTERFACE
)