From 9edc8a787ddb552afd24ef00c3c3b7eeb0945ab9 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 27 Oct 2013 22:11:49 -0700 Subject: Move seed data into install script --- app.coffee | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'app.coffee') diff --git a/app.coffee b/app.coffee index a505a4e7..50a25e0b 100644 --- a/app.coffee +++ b/app.coffee @@ -62,18 +62,3 @@ app.use((err, req, res, next) -> ) app.listen(3000) - -# Setup DB -db = require("redis").createClient() -db.sismember("mts","mt:rest", (err,res) -> - if !res - db.hmset("mt:rest",{code: "rest", label: "Restaurant/Bar"}, -> - db.sadd("mts","mt:rest") - ) - db.hmset("mt:coff",{code: "rest", label: "Coffee Shop"}, -> - db.sadd("mts","mt:coff") - ) - console.log("Added merchant types.") -) - - -- cgit v1.2.3