diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-07-21 13:23:27 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-07-21 13:23:27 -0400 |
| commit | ee251bdcfc483832bcfda6d48168f0e06096d2b0 (patch) | |
| tree | 7a11197260a2214204cfebe122b2b9f05b637723 | |
| parent | 44642b48203b3ee2fa9e281f31ed9fed3f60ee79 (diff) | |
| parent | fb106d53792b99d2a03325b7fe43b526484d10f0 (diff) | |
Merge branch 'subscriptions' of github.com:okfocus/vvalls into subscriptions
| -rw-r--r-- | server/fetch.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/fetch.js b/server/fetch.js index 219cc22..b76eeff 100644 --- a/server/fetch.js +++ b/server/fetch.js @@ -10,14 +10,15 @@ if (process.argv.length != 3) { var slug = process.argv[2] mongoose.connect('mongodb://' + DB_HOST + '/vvalls', {}, function(){ - console.error("vvalls: connected to", DB_HOST) + // console.error("vvalls: connected to", DB_HOST) Project.findOne({ slug: slug }).exec(function(err, data){ if (err || ! data) { console.error("Project " + slug + " not found!") } else { + console.error("Exporting " + data.name + " (" + slug + ") as JSON") var str = JSON.stringify( simplify(data.toObject()) ).replace(/(\.\d\d\d)\d+/g, "$1") - console.log( str ) + console.log( "vvalls_data=" + str ) } process.exit() }) |
