From 4439c7d556fb3035618375b5e98494edd344a014 Mon Sep 17 00:00:00 2001 From: Nick Haynes Date: Tue, 17 Aug 2021 10:25:36 -0500 Subject: [PATCH] Updated dusk and dusk:fails to use APP_SERVICE for APP_URL. (#219) --- bin/sail | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/sail b/bin/sail index 0647e7c3..17bf9250 100755 --- a/bin/sail +++ b/bin/sail @@ -152,7 +152,7 @@ if [ $# -gt 0 ]; then if [ "$EXEC" == "yes" ]; then docker-compose exec \ -u sail \ - -e "APP_URL=http://laravel.test" \ + -e "APP_URL=http://${APP_SERVICE}" \ -e "DUSK_DRIVER_URL=http://selenium:4444/wd/hub" \ "$APP_SERVICE" \ php artisan dusk "$@" @@ -167,7 +167,7 @@ if [ $# -gt 0 ]; then if [ "$EXEC" == "yes" ]; then docker-compose exec \ -u sail \ - -e "APP_URL=http://laravel.test" \ + -e "APP_URL=http://${APP_SERVICE}" \ -e "DUSK_DRIVER_URL=http://selenium:4444/wd/hub" \ "$APP_SERVICE" \ php artisan dusk:fails "$@"