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:
Antonio Davi Macedo Coelho de Castro
2019-06-25 14:44:23 -07:00
committed by GitHub
parent 7ffb3b65e0
commit 5bc79cc3db
8 changed files with 315 additions and 7 deletions

View File

@@ -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
);
}
}
},
});