mirror of
https://github.com/BillyOutlast/UNIT3D-podman.git
synced 2026-07-01 04:35:38 -04:00
@@ -190,3 +190,45 @@ php artisan config:clear
|
||||
```
|
||||
|
||||
This command reloads the configuration from your `.env` file and can resolve issues related to environment variables.
|
||||
|
||||
|
||||
## 20. Set Up Meilisearch for UNIT3D Search
|
||||
|
||||
UNIT3D uses Meilisearch for fast and relevant search functionality. To set up Meilisearch:
|
||||
|
||||
### 1. Start Meilisearch Container
|
||||
|
||||
If Meilisearch is included in your `podman-compose.yml`, it will start automatically. Otherwise, you can run:
|
||||
|
||||
```sh
|
||||
podman run -d --name meilisearch -p 7700:7700 getmeili/meilisearch
|
||||
```
|
||||
|
||||
### 2. Configure Meilisearch in `.env`
|
||||
|
||||
Ensure your `.env` file contains:
|
||||
|
||||
```env
|
||||
MEILISEARCH_HOST=http://meilisearch:7700
|
||||
```
|
||||
|
||||
### 3. Import Search Indexes
|
||||
|
||||
After the application is running, import the search indexes:
|
||||
|
||||
```sh
|
||||
podman exec -it unit3d-podman_unit3d_1 bash
|
||||
php artisan meilisearch:import
|
||||
```
|
||||
|
||||
This command will populate Meilisearch with the necessary data for UNIT3D's search features.
|
||||
|
||||
### 4. Rebuild Indexes (Optional)
|
||||
|
||||
If you need to rebuild the indexes (for example, after major updates):
|
||||
|
||||
```sh
|
||||
php artisan meilisearch:rebuild
|
||||
```
|
||||
|
||||
Your UNIT3D instance should now have search functionality enabled and working via Meilisearch.
|
||||
Reference in New Issue
Block a user