Skip to content

Commit 304940a

Browse files
author
Derssen
committed
Fix deploy script
1 parent 2b19c69 commit 304940a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@ jobs:
2121
cd /home/bot/telegram-balance-bot/
2222
2323
# 2. Скачиваем изменения
24-
git pull origin main
24+
git fetch --all
25+
git reset --hard origin/main
2526
2627
# 3. Активируем виртуальное окружение и обновляем библиотеки (если надо)
2728
source venv/bin/activate
2829
pip install -r requirements.txt
2930
3031
# 4. Перезапускаем бота
3132
# Для этого бот должен быть запущен через systemd (см. ниже)
33+
sudo systemctl daemon-reload
3234
systemctl restart estetico_balance_bot

0 commit comments

Comments
 (0)