generated from Templates/Docker_Image
feat: dashboard via NiceGUI, refs NOISSUE
This commit is contained in:
17
ai_software_factory/start.sh
Normal file
17
ai_software_factory/start.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# use path of this example as working directory; enables starting this script from anywhere
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
if [ "$1" = "prod" ]; then
|
||||
echo "Starting Uvicorn server in production mode..."
|
||||
# we also use a single worker in production mode so socket.io connections are always handled by the same worker
|
||||
uvicorn main:app --workers 1 --log-level info --port 80
|
||||
elif [ "$1" = "dev" ]; then
|
||||
echo "Starting Uvicorn server in development mode..."
|
||||
# reload implies workers = 1
|
||||
uvicorn main:app --reload --log-level debug --port 8000
|
||||
else
|
||||
echo "Invalid parameter. Use 'prod' or 'dev'."
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user