diff --git a/.drone.yml b/.drone.yml index 246d1da..e37f1d7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -19,22 +19,22 @@ steps: - pwd - ls -alt - npm config set registry https://registry.npm.taobao.org # 切换淘宝镜像 - - yarn - - yarn build + - npm install + - npm run build when: event: push - name: deploy-project image: appleboy/drone-scp settings: - host: 1.117.68.37 + host: ssh_ip username: root password: - from_secret: jxb_server_pwd + from_secret: ssh_password port: 22 - target: /www/wwwroot/jxb.admin.guwengkj.com #宿主机绝对路径 + target: /www/wwwroot/admin.gwkjxb.com #宿主机绝对路径 source: ./dist/* script: - - rm -rf /www/wwwroot/jxb.admin.guwengkj.com/dist/ + - rm -rf /www/wwwroot/admin.gwkjxb.com/dist/ when: event: push - name: notify diff --git a/.gitignore b/.gitignore index 77e290d..ee88fb8 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ test/ node_modules dist +.idea