You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by ag...@apache.org on 2017/04/24 08:21:55 UTC
[37/65] [abbrv] ignite git commit: ignite-2.0 Fixed IGNITE_MODULES
search path.
ignite-2.0 Fixed IGNITE_MODULES search path.
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/8ad5a945
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/8ad5a945
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/8ad5a945
Branch: refs/heads/ignite-5024
Commit: 8ad5a945de9df6df6281b80dbec6c3c8c7e3c497
Parents: e41de0c
Author: vsisko <vs...@gridgain.com>
Authored: Fri Apr 21 09:42:15 2017 +0700
Committer: Alexey Kuznetsov <ak...@apache.org>
Committed: Fri Apr 21 09:42:15 2017 +0700
----------------------------------------------------------------------
modules/web-console/backend/index.js | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ignite/blob/8ad5a945/modules/web-console/backend/index.js
----------------------------------------------------------------------
diff --git a/modules/web-console/backend/index.js b/modules/web-console/backend/index.js
index 7416f51..7db51c8 100644
--- a/modules/web-console/backend/index.js
+++ b/modules/web-console/backend/index.js
@@ -22,12 +22,13 @@ const path = require('path');
const http = require('http');
const https = require('https');
-const igniteModules = process.env.IGNITE_MODULES || './ignite_modules';
+const igniteModules = process.env.IGNITE_MODULES ?
+ path.join(path.normalize(process.env.IGNITE_MODULES), 'backend') : './ignite_modules';
let injector;
try {
- const igniteModulesInjector = path.resolve(path.join(igniteModules, 'backend', 'injector.js'));
+ const igniteModulesInjector = path.resolve(path.join(igniteModules, 'injector.js'));
fs.accessSync(igniteModulesInjector, fs.F_OK);