chore: add deployment scripts (LXC setup, systemd, Caddy reference)

This commit is contained in:
Mortdecai
2026-04-10 01:28:43 -04:00
parent 2274bf8066
commit ad288d82f2
2 changed files with 48 additions and 0 deletions
+15
View File
@@ -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
+33
View File
@@ -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"