Skip to content

Commit 269ee8d

Browse files
authored
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`.
1 parent a060a06 commit 269ee8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sail

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ fi
122122

123123
# Define environment variables...
124124
export APP_PORT=${APP_PORT:-80}
125-
export APP_SERVICE=${APP_SERVICE:-"laravel.test"}
125+
export APP_SERVICE=${APP_SERVICE:-"app"}
126126
export DB_PORT=${DB_PORT:-3306}
127127
export WWWUSER=${WWWUSER:-$UID}
128128
export WWWGROUP=${WWWGROUP:-$(id -g)}

0 commit comments

Comments
 (0)