Skip to content

Commit 0870728

Browse files
committed
Fix missing web-frontend
1 parent 3c57948 commit 0870728

File tree

4 files changed

+316
-126
lines changed

4 files changed

+316
-126
lines changed

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ RUN composer install --no-dev --no-interaction --prefer-dist --optimize-autoload
4343
# Copy the rest of the application (except files ignored by .dockerignore)
4444
COPY . .
4545

46+
# Build Symfony prod cache to match the current vendor code (prevents stale container issues)
47+
# If env vars are needed for DB during warmup, they can be provided at runtime; warmup should still succeed without DB.
48+
RUN php bin/console cache:clear --env=prod --no-warmup || true \
49+
&& php bin/console cache:warmup --env=prod || true
50+
4651
# Ensure correct permissions for cache/logs
4752
RUN chown -R www-data:www-data var public \
4853
&& find var -type d -exec chmod 775 {} \; \

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"php": "^8.1",
4747
"phplist/core": "dev-dev",
4848
"phplist/rest-api": "dev-dev",
49+
"phplist/web-frontend": "dev-dev",
4950
"doctrine/orm": "^3.3",
5051
"tatevikgr/rest-api-client": "dev-ISSUE-357",
5152
"tatevikgr/rss-feed": "dev-main as 0.1.0"

0 commit comments

Comments
 (0)