Fix LibreTranslate deploy: healthcheck from PHP container, ignore_errors, add QR code tests
- Ansible: healthcheck via PHP container (curl from php, not libretranslate) - Ansible: exit 0 if LibreTranslate not ready (don't block deploy) - Ansible: ignore_errors on translation step (non-blocking) - AccountControllerTest: add testEventQrCode (PNG response) and testEventQrCodeDeniedForOtherUser (403) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -138,10 +138,11 @@
|
||||
- name: Wait for LibreTranslate to be healthy
|
||||
shell: |
|
||||
for i in $(seq 1 60); do
|
||||
docker compose -f docker-compose-prod.yml exec -T libretranslate curl -sf http://localhost:5000/languages >/dev/null 2>&1 && exit 0
|
||||
docker compose -f docker-compose-prod.yml exec -T php curl -sf http://libretranslate:5000/languages >/dev/null 2>&1 && exit 0
|
||||
sleep 5
|
||||
done
|
||||
exit 1
|
||||
echo "LibreTranslate not ready after 5 minutes, skipping translation"
|
||||
exit 0
|
||||
args:
|
||||
chdir: /var/www/e-ticket
|
||||
|
||||
@@ -149,6 +150,7 @@
|
||||
command: make trans_prod
|
||||
args:
|
||||
chdir: /var/www/e-ticket
|
||||
ignore_errors: true
|
||||
|
||||
- name: Ensure uploads directories exist with correct permissions
|
||||
file:
|
||||
|
||||
Reference in New Issue
Block a user