Add automated VPS deployment system for remote database indexing: - Interactive setup script with SSH deployment - Systemd service/timer templates for daily scheduling - Indexing script with Docker container support - Comprehensive README documentation Features: - Automated daily indexing on remote servers - Optional Docker container deployment - Configurable paths, schedules, and incremental mode - Full monitoring and management commands - Troubleshooting guide for common issues Usage: cd deploy && ./setup-vps.sh 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
20 lines
336 B
Plaintext
20 lines
336 B
Plaintext
[Unit]
|
|
Description=Awesome Database Indexing
|
|
After=network.target docker.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
User={{USER}}
|
|
WorkingDirectory={{WORK_DIR}}
|
|
ExecStart={{SCRIPT_PATH}}
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
|
|
# Restart on failure
|
|
Restart=on-failure
|
|
RestartSec=300
|
|
|
|
# Resource limits (optional)
|
|
# MemoryMax=2G
|
|
# CPUQuota=50%
|