pictionagent-reachy / entrypoint.sh
Thibault Hervier
Move code onto HF space repo
cdcf038
raw
history blame contribute delete
649 Bytes
#!/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