chore: add deployment scripts (LXC setup, systemd, Caddy reference)
This commit is contained in:
@@ -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
|
||||
Executable
+33
@@ -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"
|
||||
Reference in New Issue
Block a user