A third party ATProto appview
1#!/bin/bash
2
3# Start Redis in the background
4echo "[STARTUP] Starting Redis server..."
5redis-server --daemonize yes --port 6379 --dir /tmp --save "" --appendonly no
6
7# Wait for Redis to be ready
8for i in {1..10}; do
9 if redis-cli ping > /dev/null 2>&1; then
10 echo "[STARTUP] Redis is ready!"
11 break
12 fi
13 echo "[STARTUP] Waiting for Redis to start... ($i/10)"
14 sleep 1
15done
16
17# Check if Redis is running
18if ! redis-cli ping > /dev/null 2>&1; then
19 echo "[STARTUP] ERROR: Redis failed to start!"
20 exit 1
21fi
22
23# Start the application
24echo "[STARTUP] Starting Node.js application..."
25NODE_ENV=development tsx server/index.ts