feat: add hotel and vehicle option site modules
Add full support for hotel group and vehicle option site management features: - Define SQLAlchemy models and alembic migration for the new database tables - Add default sample content entries in content.py - Extend admin and public API routes to support the new modules - Update seed script to populate default hotel and vehicle data - Update all relevant documentation and test cases
This commit is contained in:
16
AGENTS.md
16
AGENTS.md
@@ -57,6 +57,22 @@ python -m app.seed
|
||||
uvicorn app.main:app --host 0.0.0.0 --port 4000 --reload
|
||||
```
|
||||
|
||||
手动重启 4001 端口服务:先停止当前监听进程及其 worker,再手动运行 API。
|
||||
|
||||
```powershell
|
||||
$port = 4001
|
||||
$listenerPids = Get-NetTCPConnection -LocalPort $port -State Listen -ErrorAction SilentlyContinue |
|
||||
Select-Object -ExpandProperty OwningProcess -Unique
|
||||
foreach ($listenerPid in $listenerPids) {
|
||||
Get-CimInstance Win32_Process |
|
||||
Where-Object { $_.ParentProcessId -eq $listenerPid } |
|
||||
ForEach-Object { Stop-Process -Id $_.ProcessId -Force -ErrorAction SilentlyContinue }
|
||||
Stop-Process -Id $listenerPid -Force -ErrorAction SilentlyContinue
|
||||
}
|
||||
uvicorn app.main:app --host 0.0.0.0 --port 4001 --reload
|
||||
```
|
||||
|
||||
|
||||
Docker 全量启动:
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user