document-translation / start-services.sh
dmartincy's picture
Use HF Serverless inference
b778f8d
raw
history blame contribute delete
503 Bytes
#!/bin/bash
set -e
# Start nginx
echo "Starting nginx..."
/usr/sbin/nginx -c /etc/nginx/nginx.conf
if [ $? -ne 0 ]; then
echo "Failed to start nginx"
exit 1
fi
# Verify nginx is running
if ! ps aux | grep nginx | grep -v grep > /dev/null; then
echo "Nginx failed to start"
exit 1
fi
echo "Nginx started successfully"
# Start auth service
cd $HOME/app/auth
node auth-service.js &
# Start AI Assistant
echo "Starting AI Assistant..."
cd $HOME/app/aia
PORT=4000 node app/main.bundle.js