diff --git a/garden-service/src/commands/deploy.ts b/garden-service/src/commands/deploy.ts index 86d08cc456..1ce3515374 100644 --- a/garden-service/src/commands/deploy.ts +++ b/garden-service/src/commands/deploy.ts @@ -23,7 +23,6 @@ import { processServices } from "../process" import { logHeader } from "../logger/util" import { HotReloadTask } from "../tasks/hot-reload" import { BaseTask } from "../tasks/base" -import { ParameterError } from "../exceptions" const deployArgs = { services: new StringsParameter({ @@ -90,12 +89,8 @@ export class DeployCommand extends Command { return { result: {} } } - const watch = opts.watch const hotReloadServiceNames = opts["hot-reload"] || [] - - if (hotReloadServiceNames.length > 0 && !watch) { - throw new ParameterError(`Must specify --watch flag when requesting hot-reloading`, { opts }) - } + const watch = opts.watch || hotReloadServiceNames.length > 0 // TODO: make this a task await garden.actions.prepareEnvironment({ log })