summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-07-21 13:23:27 -0400
committerJules Laplace <jules@okfoc.us>2015-07-21 13:23:27 -0400
commitee251bdcfc483832bcfda6d48168f0e06096d2b0 (patch)
tree7a11197260a2214204cfebe122b2b9f05b637723
parent44642b48203b3ee2fa9e281f31ed9fed3f60ee79 (diff)
parentfb106d53792b99d2a03325b7fe43b526484d10f0 (diff)
Merge branch 'subscriptions' of github.com:okfocus/vvalls into subscriptions
-rw-r--r--server/fetch.js5
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()
})