mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
New flags accepted in the deploy command line
This commit is contained in:
@@ -1433,6 +1433,7 @@ main.registerCommand({
|
||||
'no-wait': { type: Boolean },
|
||||
'cache-build': { type: Boolean },
|
||||
free: { type: Boolean },
|
||||
plan: { type: String },
|
||||
mongo: { type: Boolean }
|
||||
},
|
||||
allowUnrecognizedOptions: true,
|
||||
@@ -1506,10 +1507,15 @@ function deployCommand(options, { rawOptions }) {
|
||||
if (options['deploy-polling-timeout']) {
|
||||
deployPollingTimeoutMs = options['deploy-polling-timeout'];
|
||||
}
|
||||
let plan = null;
|
||||
if (options.plan) {
|
||||
plan = options.plan;
|
||||
}
|
||||
|
||||
const isCacheBuildEnabled = !!options['cache-build'];
|
||||
const waitForDeploy = !options['no-wait'];
|
||||
|
||||
console.log('deployCommand', options.plan);
|
||||
var deployResult = deploy.bundleAndDeploy({
|
||||
projectContext: projectContext,
|
||||
site: site,
|
||||
@@ -1517,6 +1523,7 @@ function deployCommand(options, { rawOptions }) {
|
||||
free: options.free,
|
||||
mongo: options.mongo,
|
||||
buildOptions: buildOptions,
|
||||
plan,
|
||||
rawOptions,
|
||||
deployPollingTimeoutMs,
|
||||
waitForDeploy,
|
||||
|
||||
@@ -621,7 +621,11 @@ export async function bundleAndDeploy(options) {
|
||||
{},
|
||||
options.rawOptions,
|
||||
settings !== null ? {settings: settings} : {},
|
||||
{ free: options.free, mongo: options.mongo },
|
||||
{
|
||||
free: options.free,
|
||||
plan: options.plan,
|
||||
mongo: options.mongo
|
||||
},
|
||||
),
|
||||
bodyStream: createTarGzStream(pathJoin(buildDir, 'bundle')),
|
||||
expectPayload: ['url'],
|
||||
|
||||
Reference in New Issue
Block a user