Skip to content

Commit

Permalink
Updated barbeque and ultimate versions. Shares redis client w/ barbeque.
Browse files Browse the repository at this point in the history
  • Loading branch information
pilwon committed Dec 3, 2013
1 parent a6adeb1 commit e8077bb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ultimate-seed",
"description": "The ultimate full-stack AngularJS + Node.js/Express seed (batteries included!) that makes web developers insanely productive.",
"version": "0.3.5",
"version": "0.3.6",
"private": true,
"license": "MIT",
"author": "Pilwon Huh <[email protected]>",
Expand Down Expand Up @@ -61,14 +61,14 @@
],
"dependencies": {
"async": "~0.2.9",
"barbeque": "~0.2.0",
"barbeque": "~0.2.1",
"bcrypt": "~0.7.7",
"colors": "~0.6.2",
"express-winston": "~0.2.1",
"lodash": "~1.3.1",
"moment": "~2.4.0",
"string": "~1.5.1",
"ultimate": "0.3.5",
"ultimate": "0.3.6",
"winston": "~0.7.2",
"winston-mongodb": "~0.4.2",
"wrench": "~1.5.4"
Expand Down
14 changes: 9 additions & 5 deletions worker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@
var Barbeque = require('barbeque'),
ultimate = require('ultimate');

var config = exports.config = ultimate.config(__dirname + '/../config');
var config = exports.config = ultimate.config(__dirname + '/../config'),
redisConfig = ultimate.db.redis.getConfig(config.db.redis);

ultimate.db.redis.connect(redisConfig);

exports.bbq = new Barbeque({
host: config.db.redis.host,
port: config.db.redis.port,
password: config.db.redis.password,
namespace: config.db.redis.namespace
host: redisConfig.host,
port: redisConfig.port,
password: redisConfig.password,
namespace: redisConfig.namespace,
client: ultimate.db.redis.getClient()
});

exports.task = ultimate.require(__dirname + '/task');
Expand Down

0 comments on commit e8077bb

Please sign in to comment.