ocr extract
This commit is contained in:
@@ -1,20 +1,9 @@
|
||||
# Claude Learn: Deployment
|
||||
# Claude Learn: deployment
|
||||
<!-- paths: deployment/**/*, public/web.config, Dockerfile*, docker-compose*.yml, *.sh, ansible/**/*, lxc/**/* -->
|
||||
|
||||
**Domain**: deployment
|
||||
**Last updated**: 2026-01-06
|
||||
**Sessions recorded**: 1
|
||||
|
||||
Knowledge about IIS, Docker, deployment scripts, and infrastructure.
|
||||
|
||||
---
|
||||
|
||||
## Patterns
|
||||
|
||||
### IIS URL Rewrite Rules for SPA with Multiple API Backends
|
||||
**Discovered**: 2025-12-22 (feature: unified-app)
|
||||
**Description**: Configure IIS web.config to proxy different API paths to different backend ports while serving SPA for all other routes. Enables single IIS site to route to multiple microservices.
|
||||
|
||||
**Example** (`public/web.config:5-28`):
|
||||
## P: IIS URL Rewrite Rules for SPA with Multiple API Backends
|
||||
@2025-12-22 #iis #deployment #spa | inferred:med
|
||||
Configure IIS web.config to proxy different API paths to different backend ports while serving SPA for all other routes.
|
||||
```xml
|
||||
<rewrite>
|
||||
<rules>
|
||||
@@ -22,34 +11,21 @@ Knowledge about IIS, Docker, deployment scripts, and infrastructure.
|
||||
<match url="^api/reports/(.*)" />
|
||||
<action type="Rewrite" url="http://localhost:8001/api/{R:1}" />
|
||||
</rule>
|
||||
<rule name="Proxy Data Entry API" stopProcessing="true">
|
||||
<match url="^api/data-entry/(.*)" />
|
||||
<action type="Rewrite" url="http://localhost:8003/api/{R:1}" />
|
||||
</rule>
|
||||
<rule name="SPA Fallback" stopProcessing="true">
|
||||
<match url=".*" />
|
||||
<conditions logicalGrouping="MatchAll">
|
||||
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
|
||||
</conditions>
|
||||
<conditions><add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /></conditions>
|
||||
<action type="Rewrite" url="/index.html" />
|
||||
</rule>
|
||||
</rules>
|
||||
</rewrite>
|
||||
```
|
||||
|
||||
**Tags**: iis, deployment, spa, microservices, proxy
|
||||
|
||||
---
|
||||
|
||||
## Gotchas
|
||||
|
||||
_(None recorded yet)_
|
||||
|
||||
---
|
||||
|
||||
## Statistics
|
||||
|
||||
- **Total Patterns**: 1
|
||||
- **Total Gotchas**: 0
|
||||
- **Last Session**: 2026-01-06
|
||||
- **Sessions Recorded**: 1
|
||||
## P: Scripturi pentru pornire/oprire servere ROA2WEB
|
||||
@2026-01-07 #scripts #server-management | explicit:high
|
||||
Serverele se pornesc și opresc DOAR cu scripturile dedicate:
|
||||
- `./start-prod.sh` - pornește tot (SSH tunnel + backend + frontend) în mod producție
|
||||
- `./start-test.sh` - pornește în mod test
|
||||
- `./start-backend.sh restart` - restartează doar backend-ul
|
||||
- `./start-frontend.sh restart` - restartează doar frontend-ul
|
||||
- `./status.sh` - verifică starea serviciilor
|
||||
Nu folosi: `pkill`, `fuser -k`, sau alte comenzi manuale pentru oprire.
|
||||
|
||||
Reference in New Issue
Block a user