From 269ee8d962cef642543fd3a473e11e3a768fa604 Mon Sep 17 00:00:00 2001 From: Dimitar Yanakiev Date: Sun, 2 Mar 2025 15:06:58 +0200 Subject: [PATCH] Fix: Sail default container name to match docker-compose.yml (#532) By default, Sail looks for the `laravel.test` container when running `sail artisan`, but the `docker-compose.yml` in this project defines the service as `app`. This caused `sail artisan` and other Sail commands to fail locally. Updated the `APP_SERVICE` environment variable in `sail` to default to `app` instead of `laravel.test`, ensuring consistency with the service name in `docker-compose.yml`. --- sail | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sail b/sail index af31cc0..5ec98c6 100755 --- a/sail +++ b/sail @@ -122,7 +122,7 @@ fi # Define environment variables... export APP_PORT=${APP_PORT:-80} -export APP_SERVICE=${APP_SERVICE:-"laravel.test"} +export APP_SERVICE=${APP_SERVICE:-"app"} export DB_PORT=${DB_PORT:-3306} export WWWUSER=${WWWUSER:-$UID} export WWWGROUP=${WWWGROUP:-$(id -g)}