mirror of
https://github.com/Xevion/linkpulse.git
synced 2026-01-31 06:24:47 -06:00
Overhaul run.sh scripts
- Default environment variables through this, instead of .env - Added some basic checks to ensure developers don't stub their toe - Use `railway link`, injecting environment variables without insecure dotenv files
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Check whether CWD is 'frontend'
|
||||
if [ "$(basename "$(pwd)")" != "frontend" ]; then
|
||||
echo "error: This script must be run from the 'frontend' directory."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
export VITE_BACKEND_TARGET=${VITE_BACKEND_TARGET:-localhost:8000}
|
||||
pnpm run dev
|
||||
Reference in New Issue
Block a user