File size: 649 Bytes
cdcf038 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
#!/bin/bash
# Start the original Reachy setup (in background or subshell if needed)
echo "Starting base Reachy services..."
/package/launch.sh start_rviz:=true start_sdk_server:=true fake:=true orbbec:=false &
# Start nginx
echo "Starting nginx..."
mkdir -p /tmp/nginx/{body,proxy_temp,fastcgi_temp,uwsgi_temp,scgi_temp}
if [ "$USE_HTTP_HOST" = "1" ]; then
custom_host='$http_host'
else
custom_host='$host'
fi
sed "s|\$custom_host|$custom_host|g" /app/nginx.conf.template > /tmp/nginx.conf
nginx -c /tmp/nginx.conf -g "daemon off;" &
# Wait for services to boot
sleep 10
# Start our app
echo "Starting gradio app..."
exec python3 /app/app.py |