Commit 5efc432
authored
Deploying test (#10)
* Use explicit build contexts and Dockerfiles
Update examples/docker-compose.yml to set explicit build contexts and Dockerfile paths for backend and frontend services so they build correctly from the repository root. This ensures Docker uses the example subdirectories as the build context rather than the compose file location.
* Use ./ paths for docker build contexts
Update examples/docker-compose.yml to use './backend' and './frontend' as the build contexts instead of 'examples/backend' and 'examples/frontend'. This makes the paths relative to the compose file and aligns the compose configuration with the repository layout.
* Move docker-compose.yml to root and update contexts
Rename examples/docker-compose.yml to docker-compose.yml and update the Docker build contexts to examples/backend and examples/frontend. Ports and VITE_BACKEND_URL arg are unchanged. This centralizes the compose file at the repository root and corrects paths after the move.
* Use origin patterns wildcard in CORS config
Replace explicit allowed origins with setAllowedOriginPatterns(List.of("*")) to allow wildcard origins. This simplifies CORS for the demo backend (supports dynamic/dev hosts) and is compatible with allowCredentials; other CORS settings remain unchanged.1 parent 1becac1 commit 5efc432
3 files changed
Lines changed: 10 additions & 6 deletions
File tree
- examples
- backend/src/main/java/com/davidrandoll/webcaptor/demo/config
- frontend
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
9 | | - | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | | - | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments