SEMS-on-device-server/README.md
2024-09-12 18:48:25 +08:00

12 lines
428 B
Markdown
Raw 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.

## Getting Started
First, run the development server:
```bash
docker compose up
```
发布:
1. 在docker环境内编译npm run build
2. 打包Compress-Archive -Path .next/standalone/*,.next/static -DestinationPath ./release/tmp.zip
3. 运行 docker run -p 4000:3000 -v C:\SEMS-development\SEMS-on-device-server\release:/app sems-on-device-server-server:latest sh -c 'ln -snf /env/node_modules /app && npm run start'