Browse Source

Merge pull request #559 from peperunas/patch-2

fix: use exec the uvicorn process to handle Docker's SIGTERM correctly
Timothy Jaeryang Baek 1 year ago
parent
commit
d6b139cfe9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      backend/start.sh

+ 1 - 1
backend/start.sh

@@ -4,4 +4,4 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
 cd "$SCRIPT_DIR" || exit
 cd "$SCRIPT_DIR" || exit
 
 
 PORT="${PORT:-8080}"
 PORT="${PORT:-8080}"
-uvicorn main:app --host 0.0.0.0 --port "$PORT" --forwarded-allow-ips '*'
+exec uvicorn main:app --host 0.0.0.0 --port "$PORT" --forwarded-allow-ips '*'