module.exports={ protocol: 'http', host: 'localhost', port: undefined, // 如果使用 https 协议,必须填写以下内容,或在命令行参数中设置: sslType: 'greenlock', // greenlock or file sslDomainList: ['localhost'], sslKey: undefined, // '/etc/letsencrypt/live/HOST/privkey.pem', // ssl key file, sslCert: undefined, // '/etc/letsencrypt/live/HOST/fullchain.pem', // ssl cert file, sslCA: undefined, // '/etc/letsencrypt/live/HOST/bundle.pem', // ssl ca file, deploy: { type: 'web', host: 'localhost', // 待部署到的主机 port: '22', // 带部署到的主机的 SSH 端口 dir: '/home/adot/APPNAME', // 待部署到的目录路径 dist: 'dist', // 待部署到的文件夹 user: 'adot', // 登录用户名 password: '', // 登录用户密码 key: `${process.env.HOME}/.ssh/id_rsa`, // 登录用户私钥文件 }, }