Skip to content

Commit

Permalink
[CD] remove unnessary pkill
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoine TAVANT committed Jul 10, 2024
1 parent 775a4be commit 73c10b5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 </dev/null >./log-prod.log 2>&1 &
EOF
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 73c10b5

Please sign in to comment.