nightwatch: port from env will override setting PR: #384 PR-URL: https://github.com/apache/couchdb-fauxton/pull/384 Reviewed-By: Benjamin Keen <[email protected]>
Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/123881d4 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/123881d4 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/123881d4 Branch: refs/heads/master Commit: 123881d42ecc87565a9255fbec43ab5b1966447c Parents: 730e856 Author: Robert Kowalski <[email protected]> Authored: Wed Apr 15 20:30:22 2015 +0200 Committer: Robert Kowalski <[email protected]> Committed: Thu Apr 16 18:44:38 2015 +0200 ---------------------------------------------------------------------- tasks/couchserver.js | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/123881d4/tasks/couchserver.js ---------------------------------------------------------------------- diff --git a/tasks/couchserver.js b/tasks/couchserver.js index 9b21d9b..76237eb 100644 --- a/tasks/couchserver.js +++ b/tasks/couchserver.js @@ -24,6 +24,10 @@ module.exports = function (grunt) { _ = grunt.util._, helper = require('./helper.js'); + if (process.env.FAUXTON_PORT) { + options.port = process.env.FAUXTON_PORT; + } + // Options var dist_dir = options.dist || './dist/debug/', app_dir = './app',
