diff --git a/deploy/ai-hell.service b/deploy/ai-hell.service new file mode 100644 index 0000000..f322f5d --- /dev/null +++ b/deploy/ai-hell.service @@ -0,0 +1,15 @@ +[Unit] +Description=AI Hell - Passive Horror Webapp +After=network.target + +[Service] +Type=simple +User=root +WorkingDirectory=/opt/ai-hell +ExecStart=/opt/ai-hell/venv/bin/python run.py +Restart=on-failure +RestartSec=5 +Environment=PYTHONUNBUFFERED=1 + +[Install] +WantedBy=multi-user.target diff --git a/deploy/setup.sh b/deploy/setup.sh new file mode 100755 index 0000000..475349f --- /dev/null +++ b/deploy/setup.sh @@ -0,0 +1,33 @@ +#!/bin/bash +# AI Hell container setup script +# Run inside the LXC container on pve197 after GPU passthrough is configured. +set -euo pipefail + +echo "=== AI Hell Container Setup ===" + +# System packages +apt-get update +apt-get install -y python3 python3-pip python3-venv git ffmpeg + +# Create app directory +mkdir -p /opt/ai-hell +cd /opt/ai-hell + +# Clone or copy project +# (Adjust this based on whether you're cloning from Gitea or copying files) +# git clone http://192.168.0.125:3000/Seth/ai-hell.git . + +# Virtual environment +python3 -m venv venv +source venv/bin/activate + +# Install dependencies +pip install --upgrade pip +pip install -r requirements.txt + +# Create runtime directories +mkdir -p assets/img assets/audio samples + +echo "=== Setup complete ===" +echo "Drop WAV files into /opt/ai-hell/samples/ for XTTS voice cloning sources." +echo "Start with: systemctl start ai-hell"