QDAirPortBackend0122/doc/guide/commands.md
2026-01-22 13:19:47 +08:00

45 lines
713 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.

# 命令
## 开发环境编译
### 完整编译
mvn clean install
### 跳过测试(更快)
mvn clean install -DskipTests
### 只编译 admin 模块
cd qaup-admin
mvn clean package -DskipTests
## 生产环境打包
### 打包生产版本
mvn clean package -DskipTests -Pprod
### 或者不指定 profile配置文件都会打包
mvn clean package -DskipTests
## 启动后端(开发环境)
```bash
cd qaup-admin
mvn spring-boot:run -Dspring-boot.run.profiles=dev,druid
```
## 启动前端
```bash
cd qaup-admin
npm run dev
```
## 访问Swagger UI (前端)
http://localhost:8080/swagger-ui/index.html
## 查看端口占用
```bash
lsof -ti:8080
```
## 杀死进程
```bash
kill -9 进程ID
```