-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: not booting after docker compose up
Took 1 hour 56 minutes
- Loading branch information
1 parent
b5ffc11
commit f4315ff
Showing
6 changed files
with
48 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/sh | ||
|
||
# Elimina el archivo de configuración en caché si existe | ||
if [ -f /var/www/html/bootstrap/cache/config.php ]; then | ||
rm /var/www/html/bootstrap/cache/config.php | ||
fi | ||
|
||
# Ejecuta las instrucciones de Composer y Artisan | ||
composer install | ||
composer clear-cache | ||
composer dump-autoload | ||
php artisan cache:clear | ||
php artisan config:clear | ||
php artisan optimize | ||
php artisan clear-compiled | ||
php artisan key:generate | ||
php artisan config:cache | ||
chmod 777 -R storage | ||
|
||
php artisan migrate:fresh --seed | ||
php artisan l5-swagger:generate | ||
cp .env.docker .env | ||
php artisan config:clear | ||
php artisan config:cache | ||
php artisan cache:clear | ||
php artisan key:generate | ||
php artisan passport:install --force --no-interaction | ||
|
||
# Ejecuta el comando recibido como argumento del entrypoint | ||
exec "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/sh | ||
|
||
npm install | ||
npm run build | ||
|
||
# Ejecuta el comando recibido como argumento del entrypoint | ||
exec "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters