code: function readConfig() {
    let options = {}
    let cFile = ''
  
    if (program.config) {
      cFile = path.resolve(cwd, program.config)
      if (fs.existsSync(cFile)) {
        Object.assign(config, require(cFile))
      } else {
        console.warn(`Cannot find configuration file ${program.config}`)
        process.exit()
      }
    } else {
      cFile = path.resolve(cwd, 'deploy.js')
    }
  
    if (fs.existsSync(cFile)) {
      options = require(cFile)
    }
  
    ;['server', 'ignore'].forEach(function(name) {
      if (typeof program[name] !== 'undefined') {
        options[name] = program[name]
      }
    })
  
    if (program.args[0]) {
      options.workspace = path.resolve(cwd, program.args[0])
    }
  
    if (program.args[1]) {
      options.deployTo = program.args[1]
    }
  
    return options
  }
docs: read configuration from local file