Browse Source

Don't deploy again when name or public state changes (#706)

* no need in forceNew after https://github.com/zeit/now-create/pull/83

* fix lint
master
Igor Klopov 8 years ago
committed by Leo Lamprecht
parent
commit
f4c6054acb
  1. 9
      bin/now-deploy.js

9
bin/now-deploy.js

@ -187,7 +187,7 @@ if (path) {
const gitRepo = {}
// Options
let forceNew = argv.force
const forceNew = argv.force
let deploymentName = argv.name
let sessionAffinity = argv['session-affinity']
const debug = argv.debug
@ -252,13 +252,6 @@ const envFields = async list => {
return answers
}
// Create a new deployment if user changed the name or made `_src` public.
// This works fine because it doesn't force a new sync,
// it just forces a new deployment.
if (deploymentName || wantsPublic) {
forceNew = true
}
let alwaysForwardNpm
async function main() {

Loading…
Cancel
Save