feat: init new self-hosting method

This commit is contained in:
swve 2024-04-21 11:50:45 +02:00
parent d5791d99d5
commit d1fde17220
11 changed files with 663 additions and 492 deletions

14
extra/start.sh Normal file
View file

@ -0,0 +1,14 @@
#!/bin/sh
# Start the services
pm2 start server.js --cwd /app/web --name learnhouse-web > /dev/null 2>&1
pm2 start app.py --cwd /app/api --name learnhouse-api > /dev/null 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