Add Elasticsearch index creation and population to entrypoint

This update ensures the Elasticsearch indexes are created and populated during container startup. It improves initial setup automation by running relevant Artisan commands to handle data indexing and predb population seamlessly.
This commit is contained in:
vcorre
2024-12-19 15:27:49 +01:00
parent 93d64efe19
commit 0037ab6e73
+3
View File
@@ -54,6 +54,9 @@ if [ "$1" != 'php' ] && [ "$1" != 'sh' ]; then
echo "Setting permissions on storage and bootstrap/cache directories..."
chmod -R 775 storage bootstrap/cache
chown -R www-data:www-data storage bootstrap/cache
php artisan nntmux:create-es-indexes
php artisan nntmux:populate --elastic --releases
php artisan nntmux:populate --elastic --predb
fi
# Run the PHP entry point with arguments