summaryrefslogtreecommitdiff
path: root/lib/models
diff options
context:
space:
mode:
authorChristoph (Sheogorath) Kern2018-10-05 22:21:01 +0200
committerGitHub2018-10-05 22:21:01 +0200
commit32af96aa376576d060e16a2c0ff7ed5719d24e91 (patch)
tree16fe3f008e22d79a0f55af4357850c3ad24f2345 /lib/models
parentf186f733736a1e73fece235ef4952de7b703ec6c (diff)
parent61e240192e3ab7e02cb59115e10343da03f18951 (diff)
Merge pull request #940 from WilliButz/fix-configurable-paths
enhance configurabiltiy of paths & make execution path-independent
Diffstat (limited to '')
-rw-r--r--lib/models/revision.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/models/revision.js b/lib/models/revision.js
index 8bc95cb1..4ee080da 100644
--- a/lib/models/revision.js
+++ b/lib/models/revision.js
@@ -5,6 +5,7 @@ var async = require('async')
var moment = require('moment')
var childProcess = require('child_process')
var shortId = require('shortid')
+var path = require('path')
// core
var config = require('../config')
@@ -14,7 +15,7 @@ var dmpWorker = createDmpWorker()
var dmpCallbackCache = {}
function createDmpWorker () {
- var worker = childProcess.fork('./lib/workers/dmpWorker.js', {
+ var worker = childProcess.fork(path.resolve(__dirname, '../workers/dmpWorker.js'), {
stdio: 'ignore'
})
if (config.debug) logger.info('dmp worker process started')