You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project uses Sail, a local development environment based on Docker compose.
Make sure to follow the Sail documentation and prefix commands accordingly to be able to run them in Docker.
Installation
Install PHP dependencies:
sail composer install
Install Node dependencies:
sail yarn
Launch Docker services for local development:
sail up
Run JavaScript dev server:
sail yarn dev
π οΈ Configuration
Copy .env.example as .env and update environment variables as needed.
Using Meilisearch with Laravel Sail
When running Meilisearch through Sail, your MEILISEARCH_HOST should follow the https://meilisearch:port form (instead of localhost:port.) However, your front-end application expect the real URL to your Meilisearch instant.
This means that when running Meilisearch locally with Sail, your .env file will look like:
# This is the URL used by Laravel to access Meilisearch
MEILISEARCH_HOST=https://meilisearch:7700
# This is the URL used by JavaScript to access Meilisearch
VITE_MEILISEARCH_HOST=https://localhost:7700