fleet icon indicating copy to clipboard operation
fleet copied to clipboard

"sail php artisan" console command not working

Open hobbito opened this issue 2 years ago • 3 comments

When using sail php artisan command (or any other command), it outputs service "laravel.test" is not running container #1.

I tried adding and changing the APP_SERVICE env var multiple times, trying multiple options, sail console cannot reach the container.

hobbito avatar Sep 25 '23 08:09 hobbito

Was too quick there.

Solution: add APP_SERVICE="laravel.test" (or whatever the service name is from your docker-compose.yml)

Thinkro avatar Oct 04 '23 14:10 Thinkro

Already tried that. When I add the APP_SERVICE the real name of the service, that fleet creates for me, it tells me "service laravel.test is not running container 1", so I change the APP_SERVICE to laravel.test, but it is not the service name, so everything stops working.

Was too quick there.

Solution: add APP_SERVICE="laravel.test" (or whatever the service name is from your docker-compose.yml)

hobbito avatar Oct 06 '23 04:10 hobbito

sail replaces php in the command. So it should be sail artisan {command}

s3w47m88 avatar Jun 28 '24 21:06 s3w47m88