Skip to content

Commit 6cb40c5

Browse files
author
Khanh Nguyen
committed
Spawns elastalert process with python module
1 parent 617fbfc commit 6cb40c5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"dependencies": {
2121
"babel-cli": "^6.11.4",
2222
"babel-preset-es2015": "^6.13.2",
23-
"@bitsensor/elastalert-lib": "~0.0.2",
2423
"babel-register": "^6.14.0",
2524
"body-parser": "^1.15.2",
2625
"bunyan": "^1.8.1",
@@ -42,6 +41,6 @@
4241
"start": "sh ./scripts/start.sh",
4342
"test": "./scripts/test.sh",
4443
"update-authors": "./scripts/update-authors.sh",
45-
"precommit": "eslint ."
44+
"precommit": "./node_modules/eslint/bin/eslint.js ."
4645
}
4746
}

src/controllers/process/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export default class ProcessController {
5858
logger.warn('ElastAlert will start but might not be able to save its data!');
5959
}
6060

61-
this._process = spawn('python', ['elastalert/elastalert.py'], {
61+
this._process = spawn('python', ['-m', 'elastalert.elastalert'], {
6262
cwd: this._elastalertPath
6363
});
6464

0 commit comments

Comments
 (0)