Skip to content

Commit

Permalink
fix cluster when running w/ a custom config dir
Browse files Browse the repository at this point in the history
  • Loading branch information
arlolra committed Jun 17, 2011
1 parent f926578 commit e375ca8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions bin/haraka
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ else if (parsed.configs && parsed.plugin) {
}
else if (parsed.configs) {

process.argv[1] = path.join(__dirname, '../haraka.js');
process.env.HARAKA = parsed.configs;
require.paths.unshift(path.join(process.env.HARAKA, 'node_modules'));

Expand Down
3 changes: 3 additions & 0 deletions haraka.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env node

var path = require('path');
require.paths.unshift(path.join(process.env.HARAKA, 'node_modules'));

var fs = require('fs');
var logger = require('./logger');
var server = require('./server');
Expand Down

0 comments on commit e375ca8

Please sign in to comment.