ABDALLALSWAITI commited on
Commit
04b73b3
·
verified ·
1 Parent(s): cd31f41

Update start.sh

Browse files
Files changed (1) hide show
  1. start.sh +3 -2
start.sh CHANGED
@@ -1,4 +1,5 @@
1
  #!/bin/bash
2
 
3
- # Start the Uvicorn server
4
- uvicorn app:app --host "0.0.0.0" --port "7860" --workers 1
 
 
1
  #!/bin/bash
2
 
3
+ # The 'exec' command replaces the shell process with the uvicorn process,
4
+ # allowing it to properly receive signals from the container platform.
5
+ exec uvicorn app:app --host "0.0.0.0" --port "7860" --workers 1