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
89b35e45
Unverified
Commit
89b35e45
authored
Jan 17, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
Jan 17, 2024
Browse files
Merge pull request #504 from mslinn/fix1
This script can now be run from any directory
parents
578e78cb
a39cd633
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
backend/start.sh
backend/start.sh
+4
-1
No files found.
backend/start.sh
View file @
89b35e45
#!/usr/bin/env bash
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
'*'
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