GraphQL support via cli (#5697)
* Including GraphQL options in CLI - now it was auto-generated * Improving the way that the headers are passed to the playground * Including README notes about GraphQL * Improving final text
This commit is contained in:
committed by
GitHub
parent
7ffb3b65e0
commit
5bc79cc3db
@@ -84,20 +84,40 @@ runner({
|
||||
});
|
||||
} else {
|
||||
ParseServer.start(options, () => {
|
||||
console.log(
|
||||
'[' + process.pid + '] parse-server running on ' + options.serverURL
|
||||
);
|
||||
printSuccessMessage();
|
||||
});
|
||||
}
|
||||
} else {
|
||||
ParseServer.start(options, () => {
|
||||
logOptions();
|
||||
console.log('');
|
||||
console.log(
|
||||
'[' + process.pid + '] parse-server running on ' + options.serverURL
|
||||
);
|
||||
printSuccessMessage();
|
||||
});
|
||||
}
|
||||
|
||||
function printSuccessMessage() {
|
||||
console.log(
|
||||
'[' + process.pid + '] parse-server running on ' + options.serverURL
|
||||
);
|
||||
if (options.mountGraphQL) {
|
||||
console.log(
|
||||
'[' +
|
||||
process.pid +
|
||||
'] GraphQL running on http://localhost:' +
|
||||
options.port +
|
||||
options.graphQLPath
|
||||
);
|
||||
}
|
||||
if (options.mountPlayground) {
|
||||
console.log(
|
||||
'[' +
|
||||
process.pid +
|
||||
'] Playground running on http://localhost:' +
|
||||
options.port +
|
||||
options.playgroundPath
|
||||
);
|
||||
}
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user