Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Revision 621 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 148 Revision 399
Zeile 80... Zeile 80...
80
    echo "  ${GREEN}sail debug queue:work${NC}"
80
    echo "  ${GREEN}sail debug queue:work${NC}"
81
    echo
81
    echo
82
    echo "${YELLOW}Running Tests:${NC}"
82
    echo "${YELLOW}Running Tests:${NC}"
83
    echo "  ${GREEN}sail test${NC}          Run the PHPUnit tests via the Artisan test command"
83
    echo "  ${GREEN}sail test${NC}          Run the PHPUnit tests via the Artisan test command"
84
    echo "  ${GREEN}sail phpunit ...${NC}   Run PHPUnit"
84
    echo "  ${GREEN}sail phpunit ...${NC}   Run PHPUnit"
-
 
85
    echo "  ${GREEN}sail pest ...${NC}      Run Pest"
85
    echo "  ${GREEN}sail pint ...${NC}      Run Pint"
86
    echo "  ${GREEN}sail pint ...${NC}      Run Pint"
86
    echo "  ${GREEN}sail dusk${NC}          Run the Dusk tests (Requires the laravel/dusk package)"
87
    echo "  ${GREEN}sail dusk${NC}          Run the Dusk tests (Requires the laravel/dusk package)"
87
    echo "  ${GREEN}sail dusk:fails${NC}    Re-run previously failed Dusk tests (Requires the laravel/dusk package)"
88
    echo "  ${GREEN}sail dusk:fails${NC}    Re-run previously failed Dusk tests (Requires the laravel/dusk package)"
88
    echo
89
    echo
89
    echo "${YELLOW}Container CLI:${NC}"
90
    echo "${YELLOW}Container CLI:${NC}"
Zeile 132... Zeile 133...
132
export SAIL_FILES=${SAIL_FILES:-""}
133
export SAIL_FILES=${SAIL_FILES:-""}
133
export SAIL_SHARE_DASHBOARD=${SAIL_SHARE_DASHBOARD:-4040}
134
export SAIL_SHARE_DASHBOARD=${SAIL_SHARE_DASHBOARD:-4040}
134
export SAIL_SHARE_SERVER_HOST=${SAIL_SHARE_SERVER_HOST:-"laravel-sail.site"}
135
export SAIL_SHARE_SERVER_HOST=${SAIL_SHARE_SERVER_HOST:-"laravel-sail.site"}
135
export SAIL_SHARE_SERVER_PORT=${SAIL_SHARE_SERVER_PORT:-8080}
136
export SAIL_SHARE_SERVER_PORT=${SAIL_SHARE_SERVER_PORT:-8080}
136
export SAIL_SHARE_SUBDOMAIN=${SAIL_SHARE_SUBDOMAIN:-""}
137
export SAIL_SHARE_SUBDOMAIN=${SAIL_SHARE_SUBDOMAIN:-""}
-
 
138
export SAIL_SHARE_DOMAIN=${SAIL_SHARE_DOMAIN:-""}
Zeile 137... Zeile 139...
137
 
139
 
138
# Function that outputs Sail is not running...
140
# Function that outputs Sail is not running...
139
function sail_is_not_running {
141
function sail_is_not_running {
140
    echo "${BOLD}Sail is not running.${NC}" >&2
142
    echo "${BOLD}Sail is not running.${NC}" >&2
Zeile 285... Zeile 287...
285
        ARGS+=("$APP_SERVICE" php vendor/bin/phpunit "$@")
287
        ARGS+=("$APP_SERVICE" php vendor/bin/phpunit "$@")
286
    else
288
    else
287
        sail_is_not_running
289
        sail_is_not_running
288
    fi
290
    fi
Zeile -... Zeile 291...
-
 
291
 
-
 
292
# Proxy the "pest" command to "php vendor/bin/pest"...
-
 
293
elif [ "$1" == "pest" ]; then
-
 
294
    shift 1
-
 
295
 
-
 
296
    if [ "$EXEC" == "yes" ]; then
-
 
297
        ARGS+=(exec -u sail)
-
 
298
        [ ! -t 0 ] && ARGS+=(-T)
-
 
299
        ARGS+=("$APP_SERVICE" php vendor/bin/pest "$@")
-
 
300
    else
-
 
301
        sail_is_not_running
-
 
302
    fi
289
 
303
 
290
# Proxy the "pint" command to "php vendor/bin/pint"...
304
# Proxy the "pint" command to "php vendor/bin/pint"...
291
elif [ "$1" == "pint" ]; then
305
elif [ "$1" == "pint" ]; then
Zeile 292... Zeile 306...
292
    shift 1
306
    shift 1
Zeile 470... Zeile 484...
470
        docker run --init --rm -p "$SAIL_SHARE_DASHBOARD":4040 -t beyondcodegmbh/expose-server:latest share http://host.docker.internal:"$APP_PORT" \
484
        docker run --init --rm -p "$SAIL_SHARE_DASHBOARD":4040 -t beyondcodegmbh/expose-server:latest share http://host.docker.internal:"$APP_PORT" \
471
            --server-host="$SAIL_SHARE_SERVER_HOST" \
485
            --server-host="$SAIL_SHARE_SERVER_HOST" \
472
            --server-port="$SAIL_SHARE_SERVER_PORT" \
486
            --server-port="$SAIL_SHARE_SERVER_PORT" \
473
            --auth="$SAIL_SHARE_TOKEN" \
487
            --auth="$SAIL_SHARE_TOKEN" \
474
            --subdomain="$SAIL_SHARE_SUBDOMAIN" \
488
            --subdomain="$SAIL_SHARE_SUBDOMAIN" \
-
 
489
            --domain="$SAIL_SHARE_DOMAIN" \
475
            "$@"
490
            "$@"
Zeile 476... Zeile 491...
476
 
491
 
477
        exit
492
        exit
478
    else
493
    else