This commit is contained in:
“zhuzihan”  2025-08-07 14:19:58 +08:00
parent 6b6e66327c
commit 295f9cb304

View File

@ -29,7 +29,7 @@ const config = {
const localDir = path.join(__dirname, 'dist');
// 服务器目标目录
// const remoteDir = process.env.SFTP_REMOTE_DIR; // 如果使用环境变量
const remoteDir = '/home/ubuntu/mnt/teacher_test/nginx-1/dist';
const remoteDir = '/home/ubuntu/mnt/Teacher_Evaluation/nginx/dist';
async function uploadToServer() {
const sftp = new SftpClient();