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 ." },