Pepguy commited on
Commit
8609acd
·
verified ·
1 Parent(s): 2616dc8

Update start.sh

Browse files
Files changed (1) hide show
  1. start.sh +5 -6
start.sh CHANGED
@@ -2,9 +2,9 @@
2
 
3
  echo "===== Application Startup at $(date) ====="
4
 
5
- # --- Step 1: Start Redis server ---
6
- echo "[INFO] Starting Redis server..."
7
- redis-server --daemonize yes
8
  echo "[INFO] Redis server started."
9
 
10
  # --- Step 2: Wait for Redis to be ready ---
@@ -15,7 +15,6 @@ until redis-cli ping | grep -q "PONG"; do
15
  done
16
  echo "[SUCCESS] Redis is ready."
17
 
18
- # --- Step 3: Start Bun application ---
19
- echo "[INFO] Launching Bun app..."
20
- #exec bun run app.js
21
  exec node app.js
 
2
 
3
  echo "===== Application Startup at $(date) ====="
4
 
5
+ # --- Step 1: Start Redis server with config ---
6
+ echo "[INFO] Starting Redis server with persistence config..."
7
+ redis-server /app/redis.conf --daemonize yes
8
  echo "[INFO] Redis server started."
9
 
10
  # --- Step 2: Wait for Redis to be ready ---
 
15
  done
16
  echo "[SUCCESS] Redis is ready."
17
 
18
+ # --- Step 3: Start Node or Bun application ---
19
+ echo "[INFO] Launching Node app..."
 
20
  exec node app.js