deploy: one-command installer, systemd units, mbs CLI

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Savsis? 2026-09-10 17:45:43 +05:00
parent 23bb0da6c0
commit b7792421dd
4 changed files with 468 additions and 0 deletions

14
systemd/mbs-api.service Normal file
View file

@ -0,0 +1,14 @@
[Unit]
Description=MBS Panel — API + admin panel
After=network.target
[Service]
Type=simple
WorkingDirectory=/opt/mbs-panel
ExecStart=/opt/mbs-panel/venv/bin/uvicorn api:app --host 127.0.0.1 --port 8001
Restart=on-failure
RestartSec=3
User=root
[Install]
WantedBy=multi-user.target

14
systemd/mbs-bot.service Normal file
View file

@ -0,0 +1,14 @@
[Unit]
Description=MBS Panel — Telegram bot
After=network.target
[Service]
Type=simple
WorkingDirectory=/opt/mbs-panel
ExecStart=/opt/mbs-panel/venv/bin/python bot.py
Restart=on-failure
RestartSec=3
User=root
[Install]
WantedBy=multi-user.target