mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
When running "meteor deploy --star", you don't need to be in an app dir.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user