mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Merge branch 'meteor-mongo' into linker
This commit is contained in:
@@ -228,3 +228,11 @@ exports.logs = function (options) {
|
||||
logReader.close();
|
||||
}
|
||||
};
|
||||
|
||||
// options:
|
||||
// - context
|
||||
// - app
|
||||
exports.tempMongoUrl = function (options) {
|
||||
var galaxy = getGalaxy(options.context);
|
||||
return galaxy.call('getTempMongoUrl', options.app);
|
||||
};
|
||||
|
||||
@@ -790,7 +790,19 @@ Fiber(function () {
|
||||
|
||||
} else if (new_argv._.length === 2) {
|
||||
// remote mode
|
||||
deploy.mongo(new_argv._[1], new_argv.url);
|
||||
if (!!context.galaxyUrl) {
|
||||
var deployGalaxy = require('./deploy-galaxy.js');
|
||||
var url = deployGalaxy.tempMongoUrl({
|
||||
app: new_argv._[1],
|
||||
context: context
|
||||
});
|
||||
if (new_argv.url)
|
||||
process.stdout.write(url + "\n");
|
||||
else
|
||||
deploy.run_mongo_shell(url);
|
||||
} else {
|
||||
deploy.mongo(new_argv._[1], new_argv.url);
|
||||
}
|
||||
|
||||
} else {
|
||||
// usage
|
||||
|
||||
Reference in New Issue
Block a user