diff --git a/docker/php/Dockerfile b/docker/php/Dockerfile index 7e96740..d6af590 100644 --- a/docker/php/Dockerfile +++ b/docker/php/Dockerfile @@ -50,6 +50,7 @@ RUN chmod 0600 /etc/crontabs/root # Log rotation for the cron hint-check and PHP error logs: 25MB per file, kept for 3 months. COPY docker/php/logrotate/cron-hints.conf /etc/logrotate.d/cron-hints COPY docker/php/logrotate/php-logs.conf /etc/logrotate.d/php-logs +RUN chmod 0644 /etc/logrotate.d/cron-hints /etc/logrotate.d/php-logs # Adjust www-data UID/GID to match host user (default 1000) ARG USER_ID=1000 diff --git a/src/Game/Service/GameDashboardService.php b/src/Game/Service/GameDashboardService.php index 52f7416..9b30131 100644 --- a/src/Game/Service/GameDashboardService.php +++ b/src/Game/Service/GameDashboardService.php @@ -557,6 +557,8 @@ final class GameDashboardService } } + $this->entityManager->flush(); + try { $topic = '/game/hub/' . $session->getId(); $this->hub->publish(new Update($topic, json_encode(['type' => 'all_ready'])));