feat: 更新部署配置和API类型定义
将部署配置更改为生产环境服务器设置 将AxiosRequestConfig替换为InternalAxiosRequestConfig
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user