Skip to content

Commit a44c30b

Browse files
committed
fix: 🐛 update codespace behavior
1 parent 22a9bc3 commit a44c30b

6 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/larasets/_fwd.sh

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ local)
108108
# Set the APP_URL and VITE_HOST for local mode
109109
setexport APP_URL "http://$codespace${domain:+.$domain}:${APP_PORT:-80}"
110110
setexport ASSET_URL "http://$codespace${domain:+.$domain}:${APP_PORT:-80}"
111-
setexport VITE_HOST "$codespace${domain:+.$domain}:${VITE_PORT:-5173}"
111+
setexport VITE_HOST ""
112112
;;
113113
*)
114114
zz_log e "Invalid mode. Use 'remote' or 'local'."

src/larasets/_helper.tasks.json

100644100755
File mode changed.

src/larasets/_run.sh

100755100644
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
set -e
33

44
if [ -n "$LARAVEL_SAIL" ] && [ "$LARAVEL_SAIL" -eq 1 ] && sail ps --status running | grep --after-context=1 -q -; then
5+
zz_log i "Running npm command in sail container"
56
sail npm run "$@"
67
else
8+
zz_log i "Running npm command in local environment"
79
npm run "$@"
810
fi

src/larasets/_scripts.composer.json

100644100755
File mode changed.

src/larasets/_srv.sh

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ else
1111
server='npx --yes pm2'
1212
fi
1313

14-
$server restart server_$1 || $server --name server_$1 start "FORCE_COLOR=1 npm -- run \"$@\""
14+
$server restart --update-env server_$1 || $server --name server_$1 start "FORCE_COLOR=1 npm -- run \"$@\""
1515
$server log --raw --out server_$1

src/larasets/devcontainer-feature.json

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "larasets",
33
"name": "Laravel settings",
44
"description": "A feature to add useful laravel settings to your shell.",
5-
"version": "5.10.0",
5+
"version": "5.10.1",
66
"dependsOn": {
77
"ghcr.io/devcontainers/features/docker-in-docker": "",
88
"ghcr.io/devcontainers/features/node:1": "lts",

0 commit comments

Comments
 (0)