Document the one-command deploy.sh script on the live server

This commit is contained in:
byrsapty 2026-08-08 22:54:54 +03:00
parent f6124d38ab
commit c3b01952c4

View file

@ -124,11 +124,21 @@ Postgres: стандартний `pg_dump` за розкладом. Не заб
## 8. Оновлення коду
Одна команда (є на живому сервері як `/opt/bober-bbq-bot/deploy.sh`):
```bash
cd /opt/bober-bbq
/opt/bober-bbq-bot/deploy.sh
```
Робить послідовно: `git pull``pip install -r requirements.txt`
`npm install && npm run build` у `webapp/``systemctl restart bober-bbq-web bober-bbq-bot`.
Якщо розгортаєте вручну на новому сервері — ті самі кроки:
```bash
cd /opt/bober-bbq-bot
git pull
source .venv/bin/activate
pip install -r requirements.txt
.venv/bin/pip install -r requirements.txt
cd webapp && npm install && npm run build && cd ..
sudo systemctl restart bober-bbq-web bober-bbq-bot
```