Files
cgm-remote-monitor/start.sh
T
bewestandBen West 0b411aed8b Update Nightscout to version 15.0.4 and configure for Replit
Update project documentation and startup script for Nightscout v15.0.4, including Replit specific configurations like INSECURE_USE_HTTP=true and webpack bundling.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 748e831e-92ae-4927-9569-47665f47f29c
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 6e1d3764-af75-4a2b-a75f-f7252955326d
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7ea4278b-5c6c-4065-9cb8-f1013771318d/748e831e-92ae-4927-9569-47665f47f29c/FO8cDm7
Replit-Helium-Checkpoint-Created: true
2026-01-19 13:11:12 -08:00

13 lines
302 B
Bash
Executable File

#!/bin/bash
mkdir -p /home/runner/data/db
if ! pgrep -x "mongod" > /dev/null; then
echo "Starting MongoDB..."
mongod --dbpath /home/runner/data/db --fork --logpath /home/runner/data/mongod.log --bind_ip 127.0.0.1
sleep 2
fi
echo "Starting Nightscout server..."
node lib/server/server.js