Return-Path: X-Original-To: apmail-ignite-commits-archive@minotaur.apache.org Delivered-To: apmail-ignite-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6DD2F18200 for ; Thu, 3 Dec 2015 03:48:20 +0000 (UTC) Received: (qmail 36278 invoked by uid 500); 3 Dec 2015 03:48:20 -0000 Delivered-To: apmail-ignite-commits-archive@ignite.apache.org Received: (qmail 36244 invoked by uid 500); 3 Dec 2015 03:48:20 -0000 Mailing-List: contact commits-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list commits@ignite.apache.org Received: (qmail 36235 invoked by uid 99); 3 Dec 2015 03:48:20 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Dec 2015 03:48:20 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id EAA86E048C; Thu, 3 Dec 2015 03:48:19 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: akuznetsov@apache.org To: commits@ignite.apache.org Message-Id: <98282d1de8ea42cab7b0a058f1bd205f@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: ignite git commit: IGNITE-843 Minor. Date: Thu, 3 Dec 2015 03:48:19 +0000 (UTC) Repository: ignite Updated Branches: refs/heads/ignite-843-rc2 78eace050 -> 7012a33fc IGNITE-843 Minor. Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/7012a33f Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/7012a33f Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/7012a33f Branch: refs/heads/ignite-843-rc2 Commit: 7012a33fc392c04cf735892d9cc1f7ce8ce0df12 Parents: 78eace0 Author: Alexey Kuznetsov Authored: Thu Dec 3 10:48:58 2015 +0700 Committer: Alexey Kuznetsov Committed: Thu Dec 3 10:48:58 2015 +0700 ---------------------------------------------------------------------- modules/control-center-web/DEVNOTES.txt | 22 ++++++++++++-------- .../src/main/js/gulpfile.js/tasks/bundle.js | 8 +++---- .../src/main/js/gulpfile.js/tasks/connect.js | 2 +- modules/control-center-web/src/main/js/serve.js | 2 +- 4 files changed, 19 insertions(+), 15 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/7012a33f/modules/control-center-web/DEVNOTES.txt ---------------------------------------------------------------------- diff --git a/modules/control-center-web/DEVNOTES.txt b/modules/control-center-web/DEVNOTES.txt index 55620b9..42120c9 100644 --- a/modules/control-center-web/DEVNOTES.txt +++ b/modules/control-center-web/DEVNOTES.txt @@ -5,7 +5,7 @@ How to deploy: 1. Install locally NodeJS using installer from site https://nodejs.org for your OS. 2. Install locally MongoDB follow instructions from site http://docs.mongodb.org/manual/installation -3. Checkout ignite-843 branch. +3. Checkout ignite-843-rc2 branch. 4. Change directory '$IGNITE_HOME/modules/control-center-web/src/main/js'. 5. Run "npm install" in terminal for download all dependencies. 6. Build ignite-web-agent module follow instructions from 'modules/control-center-agent/README.txt'. @@ -13,12 +13,16 @@ How to deploy: Steps 1 - 5 should be executed once. -How to run: +How to run console in development mode: -1. Run MongoDB. - 1.1 In terminal change dir to $MONGO_INSTALL_DIR/server/3.0/bin. - 1.2 Run "mongod". -2. In new terminal change directory '$IGNITE_HOME/modules/control-center-web/src/main/js'. -3. Start application by executing "npm start". -4. Start "gulp connect" to run virtual server -5. In browser open: http://localhost:8080 +1. In terminal change dir to $MONGO_INSTALL_DIR/server/3.0/bin + and start MongoDB by executing "mongod". + +2. In new terminal change directory '$IGNITE_HOME/modules/control-center-web/src/main/js' + and start application by executing "npm start". + +3. In new terminal change directory '$IGNITE_HOME/modules/control-center-web/src/main/js' + and start virtual server and local changes watcher by executing "gulp watch" + or "gulp connect" to start virtual server only. + +4. In browser open: http://localhost:8080 http://git-wip-us.apache.org/repos/asf/ignite/blob/7012a33f/modules/control-center-web/src/main/js/gulpfile.js/tasks/bundle.js ---------------------------------------------------------------------- diff --git a/modules/control-center-web/src/main/js/gulpfile.js/tasks/bundle.js b/modules/control-center-web/src/main/js/gulpfile.js/tasks/bundle.js index a21bdf8..09dad7a 100644 --- a/modules/control-center-web/src/main/js/gulpfile.js/tasks/bundle.js +++ b/modules/control-center-web/src/main/js/gulpfile.js/tasks/bundle.js @@ -41,7 +41,7 @@ gulp.task('bundle', function(cb) { return sequence('bundle:ignite', 'bundle:legacy', cb); }); -// Package all external dependencies and ignite-console +// Package all external dependencies and ignite-console. gulp.task('bundle:ignite', function() { if (util.env.debug) { delete options.minify; @@ -58,13 +58,13 @@ gulp.task('bundle:ignite', function() { gulp.task('bundle:legacy', function() { return gulp.src(legacy_paths) .pipe(concat('all.js')) - .pipe(gulp.dest('./build')) + .pipe(gulp.dest('./build')); }); gulp.task('bundle:ignite:watch', function() { - return gulp.watch(paths, ['bundle:ignite']) + return gulp.watch(paths, ['bundle:ignite']); }); gulp.task('bundle:legacy:watch', function() { - return gulp.watch(legacy_paths, ['bundle:legacy']) + return gulp.watch(legacy_paths, ['bundle:legacy']); }); http://git-wip-us.apache.org/repos/asf/ignite/blob/7012a33f/modules/control-center-web/src/main/js/gulpfile.js/tasks/connect.js ---------------------------------------------------------------------- diff --git a/modules/control-center-web/src/main/js/gulpfile.js/tasks/connect.js b/modules/control-center-web/src/main/js/gulpfile.js/tasks/connect.js index f653975..b5886f4 100644 --- a/modules/control-center-web/src/main/js/gulpfile.js/tasks/connect.js +++ b/modules/control-center-web/src/main/js/gulpfile.js/tasks/connect.js @@ -24,7 +24,7 @@ var options = { middleware: function (connect, opt) { return [modrewrite([ '^/api/v1/(.*)$ http://localhost:3000/$1 [P]' - ])] + ])]; }, fallback: './build/index.html' }; http://git-wip-us.apache.org/repos/asf/ignite/blob/7012a33f/modules/control-center-web/src/main/js/serve.js ---------------------------------------------------------------------- diff --git a/modules/control-center-web/src/main/js/serve.js b/modules/control-center-web/src/main/js/serve.js index 50e29bd..9fff7a4 100644 --- a/modules/control-center-web/src/main/js/serve.js +++ b/modules/control-center-web/src/main/js/serve.js @@ -94,7 +94,7 @@ function onError(error) { ? 'Pipe ' + port : 'Port ' + port; - // handle specific listen errors with friendly messages + // Handle specific listen errors with friendly messages. switch (error.code) { case 'EACCES': console.error(bind + ' requires elevated privileges');