Added "worker.dir" to config. Fixes #721 (#723)

Esse commit está contido em:
Brian Broll
2016-08-19 08:58:16 -05:00
commit de GitHub
commit 8a94496e01
3 arquivos alterados com 4 adições e 2 exclusões
+2 -1
Ver Arquivo
@@ -9,7 +9,8 @@
"cache": {
"useBlob": true,
"dir": "~/.deepforge/worker/cache"
}
},
"dir": "~/.deepforge/worker"
},
"mongo": {
"dir": "~/.deepforge/data"
+1
Ver Arquivo
@@ -1,5 +1,6 @@
{
"DEEPFORGE_BLOB_DIR": "blob.dir",
"DEEPFORGE_WORKER_CACHE": "worker.cache.dir",
"DEEPFORGE_WORKER_DIR": "worker.dir",
"DEEPFORGE_WORKER_USE_BLOB": "worker.cache.useBlob"
}
+1 -1
Ver Arquivo
@@ -9,7 +9,7 @@ var path = require('path'),
executorSrc = path.join(__dirname, '..', 'node_modules', 'webgme', 'src',
'server', 'middleware', 'executor', 'worker'),
id = Date.now(),
workerRootPath = path.join(__dirname, '..', 'src', 'worker'),
workerRootPath = process.env.DEEPFORGE_WORKER_DIR || path.join(__dirname, '..', 'src', 'worker'),
workerPath = path.join(workerRootPath, `worker_${id}`),
workerConfigPath = path.join(workerPath, 'config.json'),
workerTmp = path.join(workerPath, 'tmp'),