feat: 更新部署配置和API类型定义

将部署配置更改为生产环境服务器设置
将AxiosRequestConfig替换为InternalAxiosRequestConfig
This commit is contained in:
dmy
2026-01-18 11:17:12 +08:00
parent 810a420a46
commit a55dfd78d2
3 changed files with 25 additions and 83 deletions

View File

@@ -12,21 +12,36 @@ import * as dotenv from 'dotenv';
dotenv.config();
// Configuration
// const config = {
// host: '127.0.0.1',
// port: 1122,
// username: 'cubie',
// privateKey: fs.readFileSync('d:\\163'),
// passphrase: process.env.SSH_PASSPHRASE || '',
// };
const config = {
host: '127.0.0.1',
port: 1122,
username: 'cubie',
host: '139.180.190.142',
port: 2211,
username: 'root',
privateKey: fs.readFileSync('d:\\163'),
passphrase: process.env.SSH_PASSPHRASE || '',
};
const destinations = {
server: '/home/cubie/down/document/bidding/publish/server',
frontend: '/home/cubie/down/document/bidding/publish/frontend',
src: '/home/cubie/down/document/bidding/',
};
// const destinations = {
// server: '/home/cubie/down/document/bidding/publish/server',
// frontend: '/home/cubie/down/document/bidding/publish/frontend',
// src: '/home/cubie/down/document/bidding/',
// };
const destinations = {
server: '/root/bidding/publish/server',
frontend: '/root/bidding/publish/frontend',
src: '/root/bidding/',
};
async function uploadDirectory(
sftp: SftpClient,
localPath: string,