Deployment Guide
This guide covers how to deploy and maintain the Eritora system on the Linux VM.
Initial Setup
- SSH into the VM:
- Clone the Repo:
- Run Setup Script:
- Configure Secrets:
Create
.envinsidewiki/:
Production: Domain & SSL
To serve the site on https://eritora.wiki:
- DNS Config (Namecheap):
- Login to Namecheap.
- Go to Advanced DNS.
- Add A Record: Host
@, Value<YOUR_VM_IP>. -
Add A Record: Host
www, Value<YOUR_VM_IP>. -
Run Nginx Setup:
Follow the Certbot prompts to enable HTTPS.
Running the Bot
The bot manages the wiki updates. It should run 24/7.
Quick Start (nohup):
Production (Systemd Service) - Recommended:
1. Create /etc/systemd/system/eritora.service:
[Unit]
Description=Eritora Wiki Bot
After=network.target
[Service]
User=wiki
WorkingDirectory=/var/www/wiki
ExecStart=/var/www/wiki/venv/bin/python3 /var/www/wiki/run_bot.py
Restart=always
[Install]
WantedBy=multi-user.target
Updates
If you change the bot code:
1. git pull on the VM.
2. Restart the bot (sudo systemctl restart eritora or kill/restart nohup).