Wait for connections to MongoDB and redis to be established on startup. Added configuration option to specify redis DB.
This commit is contained in:
1 parent
28394af707
commit
1c902af363
5 files changed
+84
-47
No files matched your search
+4
-1
@@ -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
|
||||
)
|
||||
Reference in new issue
Block a user