Prepare VPS handover: bootstrap, doctor, DB backup, systemd unit, backend deploy, operations guide; commit docs sources previously ignored

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
denis
2026-10-16 23:15:14 +02:00
parent fb3c539eee
commit a4df92a7c6
43 changed files with 2369 additions and 8 deletions
+12 -2
View File
@@ -5,7 +5,7 @@ VENV := .venv
VENV_PY := $(VENV)/bin/python
PORT ?= 8000
.PHONY: help install vendor-pyodide dev validate-levels build dev-sync fetch-nginx dev-nginx dev-admin dev-author docs docs-serve deploy check-deploy test-deploy test test-js test-python test-backend test-e2e typecheck icons voice check-voice ci ci-e2e clean
.PHONY: help install vendor-pyodide dev validate-levels build dev-sync fetch-nginx dev-nginx dev-admin dev-author docs docs-serve deploy deploy-backend vps-bootstrap vps-doctor check-deploy test-deploy test test-js test-python test-backend test-e2e typecheck icons voice check-voice ci ci-e2e clean
help: ## Affiche cette aide
@grep -E '^[a-z-]+:.*##' $(MAKEFILE_LIST) | awk -F':.*## ' '{printf " %-16s %s\n", $$1, $$2}'
@@ -35,8 +35,18 @@ deploy: build ## Déploie dist/ sur le VPS (DEPLOY_HOST=utilisateur@hote ; voir
check-deploy: ## Contrôle un site déployé (URL=https://domaine)
./scripts/check_deploy.sh $(URL)
test-deploy: ## Teste le script de déploiement avec un faux ssh local
deploy-backend: ## Envoie le code du backend Django au VPS et redémarre le service (DEPLOY_HOST=utilisateur@hote)
./scripts/deploy.sh --backend
vps-bootstrap: ## Première installation du VPS (DEPLOY_HOST=… DOMAIN=… ; ajouter ARGS=--dry-run pour simuler)
./scripts/vps_bootstrap.sh --domain $(DOMAIN) $(ARGS)
vps-doctor: ## Diagnostic en lecture seule du VPS (DEPLOY_HOST=utilisateur@hote)
ssh $(DEPLOY_HOST) 'bash -s' < scripts/vps_doctor.sh
test-deploy: ## Teste les scripts de déploiement et d'exploitation (faux ssh, faux mariadb-dump, --dry-run)
bash tests/deploy/test_deploy.sh
bash tests/deploy/test_server_scripts.sh
DOCS_VENV := .venv-docs