cd F:\设计\快速项目\AutoLableServer
deploy.bat按照提示操作即可。
cd F:\设计\快速项目\AutoLableServer
node index.jscd F:\设计\快速项目\AutoLableServer
npm startcd /path/to/AutoLableServer
chmod +x deploy.sh
./deploy.shcd /path/to/AutoLableServer
node index.jscd /path/to/AutoLableServer
npm install -g pm2
pm2 start index.js --name auto-label-server
pm2 savecd /path/to/AutoLableServer
docker-compose up -d打开浏览器访问:
http://localhost:8787/api/health
应该看到:
{"ok":true}修改 config/constants.js 中的 PORT 配置。
# 删除 node_modules 重新安装
rm -rf node_modules
npm installchmod +x deploy.sh- 测试服务器正常启动
- 配置前端连接到服务器
- 部署到生产环境