galaxy discovery tweaks

- Use deploy-specific CNAME by default
- Don't print deploy URL twice for authedRpc.
This commit is contained in:
David Glasser
2016-05-19 16:46:38 -07:00
parent 531e0b7af7
commit 0a402c7537

View File

@@ -159,6 +159,7 @@ var authedRpc = function (options) {
qs: options.qs,
printDeployURL: options.printDeployURL
});
delete rpcOptions.printDeployURL;
if (infoResult.statusCode === 401 && rpcOptions.promptIfAuthFails) {
// Our authentication didn't validate, so prompt the user to log in
@@ -838,7 +839,7 @@ function getDeployURL(site) {
return Promise.resolve(addScheme(process.env.DEPLOY_HOSTNAME));
}
const defaultURL = "https://galaxy.meteor.com";
const defaultURL = "https://us-east-1.galaxy-deploy.meteor.com";
// No site? Just use the default.
if (!site) {