Update tracktor-install.sh

This commit is contained in:
Tobias 2025-08-07 15:27:29 +02:00 committed by Push From Github
parent 8ab39322cd
commit beed0ce26e

View File

@ -22,11 +22,12 @@ rm package-lock.json
$STD npm install
$STD npm run build
mkdir /opt/tracktor-data
HOST_IP=$(hostname -I | awk '{print $1}')
cat <<EOF >/opt/tracktor/app/server/.env
NODE_ENV=production
PUBLIC_DEMO_MODE=false
PUBLIC_API_BASE_URL=/
DB_PATH=/opt/tracktor-data/vehicles.db
PUBLIC_API_BASE_URL=http://$HOST_IP:3000
PORT=3000
EOF
msg_ok "Configured Tracktor"