mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
14 lines
345 B
Bash
14 lines
345 B
Bash
#!/bin/sh
|
|
|
|
# Start the services
|
|
pm2 start server.js --cwd /app/web --name learnhouse-web > /dev/null 2>&1
|
|
pm2 start uv --cwd /app/api --name learnhouse-api -- run app.py 2>&1
|
|
|
|
# Check if the services are running qnd log the status
|
|
pm2 status
|
|
|
|
# Start Nginx in the background
|
|
nginx -g 'daemon off;' &
|
|
|
|
# Tail Nginx error and access logs
|
|
pm2 logs
|