mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 17:01:16 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user