When running "meteor deploy --star", you don't need to be in an app dir.

This commit is contained in:
David Glasser
2013-05-21 17:11:20 -07:00
parent 4616ac47fd
commit 8eeb9e97ef
2 changed files with 7 additions and 1 deletions

View File

@@ -67,6 +67,10 @@ exports.deleteApp = function (app) {
// - appDir
// - settings
// - bundleOptions
// - starball
// XXX refactor this to separate the "maybe bundle" part from "actually deploy"
// so we can be careful to not rely on any of the app dir context when
// in --star mode.
exports.deploy = function (options) {
var galaxy = getGalaxy(options.context);
var Meteor = getMeteor(options.context);

View File

@@ -785,7 +785,9 @@ Fiber(function () {
deploy.delete_app(site);
} else {
var starball = new_argv.star;
requireDirInApp("deploy");
// We don't need to be in an app if we're not going to run the bundler.
if (!starball)
requireDirInApp("deploy");
var settings = undefined;
if (new_argv.settings)
settings = runner.getSettings(new_argv.settings);