0
Fork 0
mirror of https://github.com/stonith404/pingvin-share.git synced 2025-01-29 01:28:59 -05:00

chore: save caddy logs to caddy.log

This commit is contained in:
Elias Schneider 2024-07-30 08:43:11 +02:00
parent 93aacca9b4
commit 472c93d548
No known key found for this signature in database
GPG key ID: 07E623B294202B6C

View file

@ -57,4 +57,7 @@ EXPOSE 3000
HEALTHCHECK --interval=10s --timeout=3s CMD curl -f http://localhost:3000/api/health || exit 1
# Application startup updated for Caddy
CMD cp -rn /tmp/img/* /opt/app/frontend/public/img && caddy run --config /etc/caddy/Caddyfile & PORT=3333 HOSTNAME=0.0.0.0 node frontend/server.js & cd backend && npm run prod
CMD cp -rn /tmp/img/* /opt/app/frontend/public/img && \
caddy run --config /etc/caddy/Caddyfile 2> caddy.log & \
PORT=3333 HOSTNAME=0.0.0.0 node frontend/server.js & \
cd backend && npm run prod