From 73c10b58cb970304e3c8e47615af362a506be9f3 Mon Sep 17 00:00:00 2001 From: Antoine TAVANT Date: Wed, 10 Jul 2024 08:34:59 +0000 Subject: [PATCH] [CD] remove unnessary pkill --- .github/workflows/deploy.yml | 3 --- pyproject.toml | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 265c8a1..1bf41a0 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -31,10 +31,7 @@ jobs: - name: Deploy to Server run: | ssh ubuntu@${{secrets.PROD_IP}} << 'EOF' - # ArrĂȘter le serveur Panel - pkill -f 'streamlit run' cd ${{vars.PROD_PATH}} git pull git lfs pull - nohup hatch run serve:prod ./log-prod.log 2>&1 & EOF diff --git a/pyproject.toml b/pyproject.toml index 71032e7..2644750 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -75,7 +75,7 @@ extra-dependencies = [ ] [tool.hatch.envs.serve.scripts] -prod = "streamlit run --server.port 8502 --server.baseUrlPath energy_forecast src/energy_forecast/dashboard/Accueil.py" +prod = "streamlit run --server.port 8502 --server.runOnSave True --server.baseUrlPath energy_forecast src/energy_forecast/dashboard/Accueil.py" [tool.coverage.run] source_pkgs = ["energy_forecast", "tests"]