-
Notifications
You must be signed in to change notification settings - Fork 0
/
debugMasterVCFImport.js
executable file
·36 lines (34 loc) · 1.08 KB
/
debugMasterVCFImport.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#! /usr/bin/env node
var loggerGen = require('./logger.js');
const logger = loggerGen();
var Migrator = require("./lib/Migrator.js");
logger.log('info', "Creating new migrator");
var migrator = new Migrator();
// var DEFAULT_LOCATION = '/mnt/www';
var DEFAULT_LOCATION = '/mnt/projects';
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
process.env.NGSPrefixDebugPath = '';
process.env.NGSPrefixDebugSourceFilesPath = '';
// process.env.NGSPrefixDebugSourceFilesPath = '/run/user/1000/gvfs/sftp:host=10.116.13.67,user=xtens';
// logger.log('info', process.argv[2]);
process.argv[2] = JSON.stringify({
"owner": 45,
"executor": 7,
"folder": "wes_master",
// "folder": "test",
"bearerToken": ""
});
migrator.migrateMasterNGSVCF(DEFAULT_LOCATION, '.gz', process).then((summary) => {
logger.log('info', 'migrate: done!');
// process.send(summary, function () {
if (summary && summary.error) {
process.exit(1);
}
process.exit(0);
// });
})
.catch(function (err) {
console.log(err);
logger.log('error', err);
process.exit(1);
});