File size: 503 Bytes
5341e74
c6d4e5d
9f97180
da9dd3b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b778f8d
 
 
9f97180
4bfe637
b778f8d
4bfe637
b778f8d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/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