From 584a0311d362fe4827c9442220beaa9d9e09c37b Mon Sep 17 00:00:00 2001 From: lijing1 Date: Mon, 22 Dec 2025 20:07:23 +0800 Subject: [PATCH] =?UTF-8?q?update:=E6=96=B0161=E7=8E=AF=E5=A2=83=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.js | 8 ++++++++ package.json | 1 + 2 files changed, 9 insertions(+) diff --git a/deploy.js b/deploy.js index d6d042c..3a5b64a 100644 --- a/deploy.js +++ b/deploy.js @@ -11,6 +11,14 @@ const remoteList = { remotePath: '/usr/local/nginx/html/cid', localPath: './dist', }, + prod: { + host: '192.168.190.161', + port: 22, + username: 'root', + password: 'Carsafe@2025', + remotePath: '/usr/local/nginx/html/cid', + localPath: './dist', + }, }; const config = remoteList[remoteName]; diff --git a/package.json b/package.json index cd3cada..58b9bdb 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "build": "cross-env NODE_OPTIONS=--max-old-space-size=4096 vite build", "build:docker": "cross-env NODE_OPTIONS=--max-old-space-size=4096 vite build --outDir ./docker/dist/", "deploy:test": "npm run build && node ./deploy.js test", + "deploy:prod": "npm run build && node ./deploy.js prod", "lint:eslint": "eslint --fix --ext .js,.ts,.vue ./src", "prettier": "prettier --write ." },