Skip to content
This repository was archived by the owner on Oct 5, 2020. It is now read-only.

Commit b58166d

Browse files
committed
Fixed #508: added support for ML9 over ML5/6
1 parent a8c8305 commit b58166d

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

slushfile.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ function printUsage() {
4242
process.stdout.write(' fork=<..> Github fork to use for Roxy. Defaults to: marklogic\n');
4343
process.stdout.write(' branch=<..> Github branch to use for Roxy. Defaults to: master\n');
4444
process.stdout.write(' theme=<..> Slush theme to use. Defaults to: default\n');
45-
process.stdout.write(' ml-version=<..> MarkLogic version. Defaults to: 8\n');
45+
process.stdout.write(' ml-version=<..> MarkLogic version. Defaults to: 9\n');
4646
process.stdout.write(' ml-host=<..> Host on which MarkLogic runs. Defaults to: localhost\n');
4747
process.stdout.write(' ml-admin-user=<..> User for MarkLogic deployments. Defaults to: admin\n');
4848
process.stdout.write(' ml-admin-pass=<..> Pass for MarkLogic deployments. Defaults to: <blank>\n');
4949
process.stdout.write(' ml-app-user=<..> MarkLogic user for guest access. Defaults to: <app-name>-user\n');
5050
process.stdout.write(' ml-app-pass=<..> MarkLogic pass for guest access. Defaults to: <roxy-appuser-password>\n');
51-
process.stdout.write(' ml-http-port=<..> Port at which MarkLogic app-server runs. Defaults to: 8040\n');
51+
process.stdout.write(' ml-http-port=<..> Port at which MarkLogic app-server runs. Defaults to: 8070\n');
5252
process.stdout.write(' ml-xcc-port=<..> Port at which MarkLogic xcc-server runs. Defaults to: <ml-app-port>\n');
5353
process.stdout.write(' node-port=<..> Port at which Node.js middle-tier runs. Defaults to: 9070\n');
5454
process.stdout.write(' guest-access=<..> Whether guests are automatically logged in. Defaults to: false\n');
@@ -126,7 +126,10 @@ function processInput() {
126126
branch: 'master'
127127
};
128128
(gulp.args || process.argv).forEach(function(arg) {
129-
if (isFlag(arg)) {
129+
if (arg === 'help') {
130+
printUsage();
131+
process.exit(0);
132+
} else if (isFlag(arg)) {
130133
var splits = arg.split('=');
131134
var flag = splits[0].replace(/^-+/,'');
132135
var value = splits[1];
@@ -474,7 +477,7 @@ gulp.task('init', ['checkForUpdates'], function(done) {
474477
type: 'list',
475478
name: 'mlVersion',
476479
message: 'MarkLogic version?',
477-
choices: ['8', '7', '6', '5'],
480+
choices: ['9', '8', '7'],
478481
default: 0
479482
});
480483
}
@@ -508,15 +511,15 @@ gulp.task('init', ['checkForUpdates'], function(done) {
508511
type: 'input',
509512
name: 'appPort',
510513
message: 'MarkLogic App/Rest port?',
511-
default: 8040
514+
default: 8070
512515
});
513516
}
514517
if (!clArgs['ml-xcc-port']) {
515518
prompts.push({
516519
type: 'input',
517520
name: 'xccPort',
518521
message: 'XCC port?',
519-
default: 8041,
522+
default: 8071,
520523
when: function(answers) {
521524
return (answers.mlVersion || clArgs['ml-version']) < 8;
522525
}

0 commit comments

Comments
 (0)