Browse Source

Force new deployment if -n or -p defined

This closes #136
master
Leo Lamprecht 8 years ago
parent
commit
3f4d419f78
No known key found for this signature in database GPG Key ID: B08517883D5E0E10
  1. 10
      bin/now-deploy.js

10
bin/now-deploy.js

@ -145,10 +145,10 @@ const exit = code => {
}
// options
let forceNew = argv.force
const debug = argv.debug
const clipboard = !argv['no-clipboard']
const forwardNpm = argv['forward-npm']
const forceNew = argv.force
const forceSync = argv.forceSync
const shouldLogin = argv.login
const wantsPublic = argv.public
@ -161,6 +161,14 @@ if (argv.config) {
cfg.setConfigFile(argv.config)
}
// Create a new deployment if user changed
// the name or made _src public.
// This should just work fine because it doesn't
// force a new sync, it just forces a new deployment.
if (deploymentName || wantsPublic) {
forceNew = true
}
const config = cfg.read()
const alwaysForwardNpm = config.forwardNpm

Loading…
Cancel
Save