Viewing: start_dashboards.sh
#!/bin/bash echo "==== $(date '+%F %T') - Iniciando reinÃcio dos dashboards ====" >> /home/grupo692/dashboard_geral.log # Encerra qualquer processo anterior do streamlit pkill -f streamlit sleep 2 echo "Encerrando dashboards..." >> /home/grupo692/dashboard_geral.log echo "Reiniciando dashboards..." >> /home/grupo692/dashboard_geral.log # Reiniciar os dashboards com nohup e ambiente virtual correto nohup /home/grupo692/appstigrupobig/venv/bin/streamlit run /home/grupo692/appstigrupobig/dashBarreiras.py --server.port=8504 --server.address=0.0.0.0 & nohup /home/grupo692/appstigrupobig/venv/bin/streamlit run /home/grupo692/appstigrupobig/dashSFilho.py --server.port=8505 --server.address=0.0.0.0 & nohup /home/grupo692/appstigrupobig/venv/bin/streamlit run /home/grupo692/appstigrupobig/dashCajazeiras.py --server.port=8506 --server.address=0.0.0.0 & nohup /home/grupo692/appstigrupobig/venv/bin/streamlit run /home/grupo692/appstigrupobig/dashFSA.py --server.port=8507 --server.address=0.0.0.0 & echo "==== $(date '+%F %T') - Dashboards reiniciados com sucesso ====" >> /home/grupo692/dashboard_geral.log
Return