فهرست منبع

Fix start.sh line endings and shell compatibility

- Convert CRLF to LF line endings (was causing "no such file" error)
- Change shebang from /bin/bash to /bin/sh (more portable)
- Remove bash-specific 'wait -n' flag
- Remove nginx daemon flag (not needed when backgrounding)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
tuanchris 3 هفته پیش
والد
کامیت
0db1bbd3e9
1فایلهای تغییر یافته به همراه16 افزوده شده و 16 حذف شده
  1. 16 16
      start.sh

+ 16 - 16
start.sh

@@ -1,16 +1,16 @@
-#!/bin/bash
-set -e
-
-# Start nginx in background
-nginx -g "daemon off;" &
-NGINX_PID=$!
-
-# Start backend
-uvicorn main:app --host 0.0.0.0 --port 8080 &
-UVICORN_PID=$!
-
-# Wait for either process to exit
-wait -n $NGINX_PID $UVICORN_PID
-
-# If one exits, kill the other
-kill $NGINX_PID $UVICORN_PID 2>/dev/null || true
+#!/bin/sh
+set -e
+
+# Start nginx in background
+nginx &
+NGINX_PID=$!
+
+# Start backend
+uvicorn main:app --host 0.0.0.0 --port 8080 &
+UVICORN_PID=$!
+
+# Wait for either process to exit
+wait $NGINX_PID $UVICORN_PID
+
+# If one exits, kill the other
+kill $NGINX_PID $UVICORN_PID 2>/dev/null || true