Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
d6b139cf
Unverified
Commit
d6b139cf
authored
Jan 25, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
Jan 25, 2024
Browse files
Merge pull request #559 from peperunas/patch-2
fix: use exec the uvicorn process to handle Docker's SIGTERM correctly
parents
a243e53b
1cbbfc7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
backend/start.sh
backend/start.sh
+1
-1
No files found.
backend/start.sh
View file @
d6b139cf
...
...
@@ -4,4 +4,4 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd
"
$SCRIPT_DIR
"
||
exit
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
'*'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment