Files
merchbay_admin/docker-entrypoint.sh
Frank John Begornia 678a8842f4
All checks were successful
Deploy Production (admin.merchbay.app) / deploy (push) Successful in 2m42s
Add entrypoint script and update Dockerfile for proper initialization; modify Traefik labels for production environment
2025-12-21 05:06:11 +08:00

19 lines
460 B
Bash

#!/bin/bash
set -e
# Create storage directory structure if it doesn't exist
mkdir -p storage/framework/views
mkdir -p storage/framework/cache
mkdir -p storage/framework/sessions
mkdir -p storage/logs
mkdir -p storage/app/public
mkdir -p bootstrap/cache
mkdir -p public/uploads
# Set proper permissions
chown -R www-data:www-data storage bootstrap/cache public/uploads
chmod -R 775 storage bootstrap/cache public/uploads
# Execute the main command
exec "$@"