Closed zss1004504439 closed 3 years ago
你单独运行 npm run build:preview 命令打包正常吗?需要多久?
你单独运行 npm run build:preview 命令打包正常吗?需要多久?
一分钟左右
应该不存在卡主的情况 这个只不过是在后台执行 npm run build:preview 你再试试 看看有没有什么报错
应该不存在卡主的情况 这个只不过是在后台执行 npm run build:preview 你再试试 看看有没有什么报错
用的root账户 服务器需要什么开放什么权限吗
应该不存在卡主的情况 这个只不过是在后台执行 npm run build:preview 你再试试 看看有没有什么报错
module.exports = {
projectName: 'xxx',
privateKey: '',
passphrase: '',
cluster: [],
test: {
name: '测试环境',
script: 'npm run build:preview',
host: 'xx.xx.xxx.xxx',
port: 22,
username: 'root',
password: 'xxxxxx',
distPath: 'dist',
webDir: '/usr/local/nginx/html',
isRemoveRemoteFile: false
},
prod: {
name: '生产环境',
script: 'npm run build:prod',
host: '',
port: 22,
username: 'root',
password: '',
distPath: 'dist',
webDir: '',
isRemoveRemoteFile: true
}
}
应该不存在卡主的情况 这个只不过是在后台执行 npm run build:preview 你再试试 看看有没有什么报错
用的root账户 服务器需要什么开放什么权限吗
不需要什么权限
应该不存在卡主的情况 这个只不过是在后台执行 npm run build:preview 你再试试 看看有没有什么报错
module.exports = { projectName: 'xxx', privateKey: '', passphrase: '', cluster: [], test: { name: '测试环境', script: 'npm run build:preview', host: 'xx.xx.xxx.xxx', port: 22, username: 'root', password: 'xxxxxx', distPath: 'dist', webDir: '/usr/local/nginx/html', isRemoveRemoteFile: false }, prod: { name: '生产环境', script: 'npm run build:prod', host: '', port: 22, username: 'root', password: '', distPath: 'dist', webDir: '', isRemoveRemoteFile: true } }
你 package.json 文件中也写的 npm run build:preview ?
用的 root 和 密码;privateKey和passphrase为空