Files
DDCZ/启动服务器.bat
KQL b0d2e629d9 feat: 完善项目功能和部署脚本
- 修复页面跳转白屏闪烁问题
- 集成过渡岗位页面(岗位装配中心)
- 添加iframe全屏嵌入(教务系统、就业规划)
- 优化企业资源卡片hover分裂效果
- 添加Windows和macOS快捷部署脚本
- 更新.gitignore忽略测试文件和缓存

🤖 Generated with Claude Code
2025-12-04 16:03:31 +08:00

52 lines
1.1 KiB
Batchfile
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
chcp 65001 >nul
title 多多畅职大专生就业服务平台 - 局域网服务器
echo.
echo ========================================
echo 多多畅职大专生就业服务平台
echo 局域网服务器启动脚本 (Windows)
echo ========================================
echo.
:: 检查 Node.js 是否安装
where node >nul 2>nul
if %errorlevel% neq 0 (
echo [错误] 未检测到 Node.js
echo.
echo 请先安装 Node.js:
echo 下载地址: https://nodejs.org/
echo.
pause
exit /b 1
)
:: 显示 Node.js 版本
echo [信息] 检测到 Node.js 版本:
node --version
echo.
:: 检查 server.js 是否存在
if not exist "server.js" (
echo [错误] 找不到 server.js 文件!
echo 请确保在项目根目录运行此脚本。
echo.
pause
exit /b 1
)
:: 启动服务器
echo [启动] 正在启动局域网服务器...
echo.
echo ========================================
echo 提示: 按 Ctrl+C 可停止服务器
echo ========================================
echo.
node server.js
:: 如果服务器意外退出
echo.
echo [提示] 服务器已停止运行
pause