feat: install-shop-service.sh для установки systemd unit
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -52,6 +52,22 @@ cp /opt/shop/shop10.bak.*/.env /opt/shop/shop10/.env 2>/dev/null || cp /opt/shop
|
||||
bash /opt/shop/shop10/scripts/server-update.sh
|
||||
```
|
||||
|
||||
## Служба shop не установлена
|
||||
|
||||
Код обновился, но systemd unit не настроен:
|
||||
|
||||
```bash
|
||||
cd /opt/shop/shop10
|
||||
sudo bash scripts/install-shop-service.sh
|
||||
```
|
||||
|
||||
Проверка:
|
||||
|
||||
```bash
|
||||
systemctl status shop
|
||||
curl -s http://127.0.0.1:3000/health
|
||||
```
|
||||
|
||||
## scripts/server-update.sh: No such file or directory
|
||||
|
||||
Вы не в каталоге репозитория или клон в подпапке (например `/opt/shop/shop10`):
|
||||
|
||||
Reference in New Issue
Block a user