Initial commit: OAuth IAM Laravel application
Laravel-based OAuth/IAM service with Passport, Vue 3 frontend, and Docker Compose setup for local and production deployment. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
24
docker/php/entrypoint.sh
Normal file
24
docker/php/entrypoint.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
cd /var/www/html
|
||||
|
||||
if [ "$CONTAINER_ROLE" = "app" ]; then
|
||||
chown -R www-data:www-data storage bootstrap/cache
|
||||
|
||||
if [ ! -f storage/oauth-private.key ]; then
|
||||
echo "Generando claves de Passport (primer arranque)..."
|
||||
su-exec www-data php artisan passport:keys
|
||||
fi
|
||||
|
||||
echo "Aplicando migraciones..."
|
||||
su-exec www-data php artisan migrate --force
|
||||
|
||||
echo "Cacheando configuración, rutas y vistas..."
|
||||
su-exec www-data php artisan config:cache
|
||||
su-exec www-data php artisan route:cache
|
||||
su-exec www-data php artisan view:cache
|
||||
su-exec www-data php artisan l5-swagger:generate
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
Reference in New Issue
Block a user