fix: server-update ищет корень репо (в т.ч. /opt/shop/shop10)
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -195,11 +195,17 @@ systemctl daemon-reload
|
||||
## 10. Обновление
|
||||
|
||||
```bash
|
||||
cd /opt/shop
|
||||
git config --global --add safe.directory /opt/shop
|
||||
cd /opt/shop/shop10
|
||||
git config --global --add safe.directory "$(pwd)"
|
||||
bash scripts/server-update.sh
|
||||
```
|
||||
|
||||
Если клон в `/opt/shop` без подкаталога — используйте `/opt/shop`. Скрипт ищет `package.json` автоматически; можно запустить так:
|
||||
|
||||
```bash
|
||||
bash /opt/shop/shop10/scripts/server-update.sh
|
||||
```
|
||||
|
||||
Или вручную:
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user