refatoracao

This commit is contained in:
2026-03-23 23:38:56 +00:00
parent 8002262cf7
commit b7e6239216
16 changed files with 2290 additions and 4321 deletions

View File

@@ -1,13 +1,13 @@
#!/bin/bash
# Tenta limpar processos conflitantes no host se tiver acesso privilégido
if [ -d "/host_root" ]; then
echo "Limpando processos conflitantes no HOST..."
chroot /host_root /bin/bash -c "pkill -f telegram_bot.js" || true
chroot /host_root /bin/bash -c "pkill -f bot_logic.py" || true
fi
# Inicia o serviço web
uvicorn main:app --host 0.0.0.0 --port 8000 &
# Inicia o Polling do Bot
python bot_logic.py
#!/bin/bash
# Tenta limpar processos conflitantes no host se tiver acesso privilégido
if [ -d "/host_root" ]; then
echo "Limpando processos conflitantes no HOST..."
chroot /host_root /bin/bash -c "pkill -f telegram_bot.js" || true
chroot /host_root /bin/bash -c "pkill -f bot_logic.py" || true
fi
# Inicia o serviço web
uvicorn main:app --host 0.0.0.0 --port 8000 &
# Inicia o Polling do Bot
python bot_logic.py