fuchengwei / deploy-cli-service

前端自动部署脚手架服务
MIT License
428 stars 87 forks source link

求助!一直再loading.... 正在打包中。。。 #25

Closed zss1004504439 closed 3 years ago

zss1004504439 commented 3 years ago

image 用的 root 和 密码;privateKey和passphrase为空

fuchengwei commented 3 years ago

你单独运行 npm run build:preview 命令打包正常吗?需要多久?

zss1004504439 commented 3 years ago

你单独运行 npm run build:preview 命令打包正常吗?需要多久?

一分钟左右

fuchengwei commented 3 years ago

应该不存在卡主的情况 这个只不过是在后台执行 npm run build:preview 你再试试 看看有没有什么报错

zss1004504439 commented 3 years ago

应该不存在卡主的情况 这个只不过是在后台执行 npm run build:preview 你再试试 看看有没有什么报错

用的root账户 服务器需要什么开放什么权限吗

zss1004504439 commented 3 years ago

应该不存在卡主的情况 这个只不过是在后台执行 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
  }
}
fuchengwei commented 3 years ago

应该不存在卡主的情况 这个只不过是在后台执行 npm run build:preview 你再试试 看看有没有什么报错

用的root账户 服务器需要什么开放什么权限吗

不需要什么权限

fuchengwei commented 3 years ago

应该不存在卡主的情况 这个只不过是在后台执行 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 ?

zss1004504439 commented 3 years ago

image