Document the one-command deploy.sh script on the live server
This commit is contained in:
parent
f6124d38ab
commit
c3b01952c4
1 changed files with 13 additions and 3 deletions
|
|
@ -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
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue