chore: add dev start scripts for server and vite
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
11
web/scripts/start-server.sh
Executable file
11
web/scripts/start-server.sh
Executable file
@@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||||
|
cd "${ROOT_DIR}"
|
||||||
|
|
||||||
|
export PATH="/home/gahow/.nvm/versions/node/v24.13.1/bin:$PATH"
|
||||||
|
export HOST="127.0.0.1"
|
||||||
|
export PORT="${PORT:-8787}"
|
||||||
|
|
||||||
|
exec npx tsx src/server/index.ts
|
||||||
9
web/scripts/start-vite.sh
Executable file
9
web/scripts/start-vite.sh
Executable file
@@ -0,0 +1,9 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||||
|
cd "${ROOT_DIR}"
|
||||||
|
|
||||||
|
export PATH="/home/gahow/.nvm/versions/node/v24.13.1/bin:$PATH"
|
||||||
|
|
||||||
|
exec npx vite --host 0.0.0.0 --port 5174
|
||||||
Reference in New Issue
Block a user