mirror of
https://github.com/zhigang1992/deployd.git
synced 2026-05-12 19:59:03 +08:00
fixed missing keys.json
This commit is contained in:
@@ -10,6 +10,7 @@ var http = require('http')
|
||||
, setupReqRes = require('./util/http').setup
|
||||
, debug = require('debug')('server')
|
||||
, config = require('./config-loader')
|
||||
, path = require('path')
|
||||
, Cluster = require('./cluster');
|
||||
|
||||
function extend(origin, add) {
|
||||
@@ -80,7 +81,7 @@ function Server(options) {
|
||||
var sessionStore = this.sessions = new SessionStore('sessions', this.db, this.sockets, cluster);
|
||||
|
||||
// persist keys in a store
|
||||
var keys = this.keys = new Keys(options.dir);
|
||||
var keys = this.keys = new Keys(path.join(options.dir, '.dpd/keys.json'));
|
||||
|
||||
this.on('request', function (req, res) {
|
||||
// dont handle socket.io requests
|
||||
|
||||
Reference in New Issue
Block a user