From 517fb60c7b3c19d71553962d0f34d5ca62a15e1b Mon Sep 17 00:00:00 2001 From: MrAnyx <1ptitigre@gmail.com> Date: Fri, 3 Jan 2025 00:16:30 +0000 Subject: [PATCH] fix: Update entrypoint script and Dockerfile for messenger worker service path --- .docker/entrypoint.prod.sh | 4 ++-- Dockerfile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.docker/entrypoint.prod.sh b/.docker/entrypoint.prod.sh index 44c8290..e94ea37 100644 --- a/.docker/entrypoint.prod.sh +++ b/.docker/entrypoint.prod.sh @@ -6,8 +6,8 @@ echo "Running database migrations..." php bin/console doctrine:migrations:migrate --no-interaction --allow-no-migration # Enable and start the worker -systemctl --user enable messenger-worker@1.service -systemctl --user start messenger-worker@1.service +systemctl --user enable messenger-worker@1 +systemctl --user start messenger-worker@1 # Start Apache server echo "Starting Apache..." diff --git a/Dockerfile b/Dockerfile index 19915b5..3f09b2d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,7 +24,7 @@ ENV APP_ENV=prod ENV APP_DEBUG=0 RUN cp $PHP_INI_DIR/php.ini-production $PHP_INI_DIR/php.ini COPY . . -COPY ./.docker/messenger-worker@.service /etc/systemd/system +COPY ./.docker/messenger-worker@.service /etc/systemd/user ADD --chmod=0755 ./.docker/entrypoint.prod.sh /usr/local/bin/entrypoint.sh RUN composer install --no-dev --optimize-autoloader --no-interaction RUN php bin/console cache:clear && php bin/console cache:warmup