Fix production 500 error: remove build-time config:cache and fix runtime database permissions and seeding

This commit is contained in:
2026-10-31 15:41:27 +01:00
parent a888fe3695
commit 69f1800fcd
3 changed files with 50 additions and 7 deletions
+1 -1
View File
@@ -48,5 +48,5 @@ RUN mkdir -p /app/storage /app/bootstrap/cache /app/database \
EXPOSE 80
CMD ["sh", "-c", "php artisan storage:link && php artisan migrate --force && frankenphp run --config /etc/caddy/Caddyfile"]
CMD ["sh", "-c", "php artisan storage:link && mkdir -p /app/database /app/storage/framework/cache /app/storage/framework/sessions /app/storage/framework/views /app/storage/logs && touch /app/database/database.sqlite && chmod -R 777 /app/database /app/storage && php artisan migrate --force && php artisan db:seed --force && frankenphp run --config /etc/caddy/Caddyfile"]