Skip to content

Instantly share code, notes, and snippets.

@lefnire
Created July 5, 2013 23:50
Show Gist options
  • Save lefnire/5937919 to your computer and use it in GitHub Desktop.
Save lefnire/5937919 to your computer and use it in GitHub Desktop.
let itsalive run, terminate manually
diff --git a/itsalive.coffee b/itsalive.coffee
index e420b55..33bcd60 100644
--- a/itsalive.coffee
+++ b/itsalive.coffee
@@ -44,8 +44,8 @@ db.collections (err, collections) ->
console.error(err) if err
if (counter.collections is 0) and (--counter.items is 0)
console.log "All done. Processed #{counter.total} collections"
- db.close()
- process.exit()
+ #db.close()
+ #process.exit()
# Each must be used for large datasets, toArray won't fit in memory: http://mongodb.github.io/node-mongodb-native/api-generated/cursor.html#each
names.forEach (name) ->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment