You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The staging test environment is located in `.github/scripts/staging/` and contains Docker configuration files used for testing the built site before deployment. This environment:
106
+
The staging test environment uses Docker Compose to run the built site with Apache configuration that mirrors the hosting environment. This environment:
107
107
108
108
- Tests the site with Apache configuration that mirrors the hosting environment
109
-
- Validates that htaccess rules work correctly
109
+
- Validates that htaccess rules work correctly
110
110
- Ensures the site serves properly before deployment
111
111
112
+
### Running the Staging Environment
113
+
114
+
To run the staging environment locally using Docker Compose:
115
+
116
+
```bash
117
+
# Build the site first (if not already built)
118
+
docker compose up --build dist
119
+
120
+
# Start the staging service
121
+
docker compose up --build staging
122
+
```
123
+
124
+
The staging service will be available at http://localhost:8080
125
+
126
+
The staging environment automatically uses the consolidated `httpd_serve` Docker stage from the main Dockerfile, ensuring consistency between development and CI/CD environments.
127
+
112
128
The staging tests run automatically in CI/CD workflows when changes are pushed to the master branch or in pull requests.
0 commit comments