diff --git a/setup/functions.sh b/setup/functions.sh index 3056209..56e9489 100644 --- a/setup/functions.sh +++ b/setup/functions.sh @@ -58,3 +58,10 @@ source_implement() { " fi } + +scout_import() { + docker compose run --rm -w /var/dev/blog-admin php83 ash -l -c "\ + php artisan scout:import \ + \"CSlant\Blog\Core\Models\User\" \ + " +} diff --git a/setup/handlers.sh b/setup/handlers.sh index bbc3e4f..cfbcc4d 100644 --- a/setup/handlers.sh +++ b/setup/handlers.sh @@ -50,8 +50,5 @@ elasticsearch_import() { cd "$CURRENT_DIR" || exit echo "◎ Importing Elasticsearch data..." - docker compose run --rm -w /var/dev/blog-admin php83 ash -l -c "\ - php artisan scout:import \ - \"CSlant\Blog\Core\Models\User\" \ - " + scout_import }