Skip to content

Commit

Permalink
fix: Update entrypoint script and Dockerfile for messenger worker ser…
Browse files Browse the repository at this point in the history
…vice path
  • Loading branch information
MrAnyx committed Jan 3, 2025
1 parent d24e8e0 commit 517fb60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .docker/entrypoint.prod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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..."
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 517fb60

Please sign in to comment.