mirror of
https://github.com/deunix-educ/PyQuest.git
synced 2026-11-25 08:19:44 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user