static sort de l'espace de travail
static.alpinux.org rejoint ~/Projects/alpinux.static, au même niveau que wiki, admin et dynamic. Son README fait désormais foi pour le déploiement : les deux sections détaillées laissent place à un renvoi, pour que la procédure ne soit plus écrite à deux endroits. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KtgiPNG3inkbM8k7suMtjL
This commit is contained in:
parent
df889649d8
commit
cc522e8b15
1 changed files with 13 additions and 20 deletions
31
README.md
31
README.md
|
|
@ -14,7 +14,6 @@ Ce dossier racine est un espace de travail local — il n'a pas de remote git.
|
|||
| `feedback/` | feedback.alpinux.org | à construire | [alpinux-feedback](https://gitea.alpinux.org/alpinux.cedrica5l/alpinux-feedback) |
|
||||
| `home/` | alpinux.org | HTML statique | [alpinux-home](https://gitea.alpinux.org/alpinux.cedrica5l/alpinux-home) |
|
||||
| `portail/` | portail.alpinux.org | en construction | [alpinux-portail](https://gitea.alpinux.org/alpinux.cedrica5l/alpinux-portail) |
|
||||
| `static/` | static.alpinux.org | Flask + AlpID + CDN | [alpinux-static](https://gitea.alpinux.org/alpinux.cedrica5l/alpinux-static) |
|
||||
| `infra/` | — | Configs Apache + systemd | dépôt git local séparé |
|
||||
|
||||
### Sortis de cet espace
|
||||
|
|
@ -26,6 +25,7 @@ Ces projets ont leur propre dossier, au même niveau que celui-ci — un dépôt
|
|||
| `~/Projects/alpinux.wiki` | wiki.alpinux.org | [alpinux-wiki](https://gitea.alpinux.org/alpinux.cedrica5l/alpinux-wiki) |
|
||||
| `~/Projects/alpinux.admin` | admin.alpinux.org | [alpinux-admin](https://gitea.alpinux.org/alpinux.cedrica5l/alpinux-admin) |
|
||||
| `~/Projects/alpinux.dynamic` | dynamic.alpinux.org | [alpinux-dynamic](https://gitea.alpinux.org/alpinux.cedrica5l/alpinux-dynamic) |
|
||||
| `~/Projects/alpinux.static` | static.alpinux.org | [alpinux-static](https://gitea.alpinux.org/alpinux.cedrica5l/alpinux-static) |
|
||||
|
||||
Leurs procédures de déploiement sont décrites dans leur propre README.
|
||||
|
||||
|
|
@ -42,27 +42,20 @@ AlpID (SSO) : **https://alpid.alpinux.org** — realm `master`
|
|||
| Projet | Méthode | Commande |
|
||||
|--------|---------|----------|
|
||||
| `home` | git pull sur serveur | `ssh alpinux.org "cd <web root> && git pull"` |
|
||||
| `static` (app) | rsync local + restart | `cd static && scripts/deploy-app.sh` |
|
||||
| `static` (assets) | rsync local | `cd static && scripts/push-assets.sh` |
|
||||
| `static` (app) | rsync local + restart | `cd ~/Projects/alpinux.static && scripts/deploy-app.sh` |
|
||||
| `static` (assets) | rsync local | `cd ~/Projects/alpinux.static && scripts/push-assets.sh` |
|
||||
|
||||
Dans tous les cas : versionner avec `git push` **avant** de déployer.
|
||||
|
||||
### static.alpinux.org — app Flask
|
||||
### static.alpinux.org
|
||||
|
||||
Le détail (app Flask et assets CDN) est dans `~/Projects/alpinux.static/README.md`.
|
||||
|
||||
```bash
|
||||
# 1. Poste local
|
||||
git push origin main
|
||||
|
||||
# 2. Déployer (rsync depuis le dépôt local + restart service)
|
||||
cd static
|
||||
scripts/deploy-app.sh
|
||||
```
|
||||
|
||||
### static.alpinux.org — assets CDN
|
||||
|
||||
```bash
|
||||
cd static
|
||||
scripts/push-assets.sh # rsync logo/, wiki/, stats/, error/ → web root ISPConfig
|
||||
cd ~/Projects/alpinux.static
|
||||
git push origin main # versionner d'abord
|
||||
scripts/deploy-app.sh # app Flask → /opt/static-cdn + restart service
|
||||
scripts/push-assets.sh # logo/, wiki/, stats/, error/ → web root ISPConfig
|
||||
```
|
||||
|
||||
### Wiki
|
||||
|
|
@ -76,7 +69,7 @@ Voir https://wiki.alpinux.org/technique/deploiement-wiki/
|
|||
|
||||
| Projet | Commande | URL |
|
||||
|--------|----------|-----|
|
||||
| `static` | `python app/app.py` | http://localhost:5003 |
|
||||
| `~/Projects/alpinux.static` | `python app/app.py` | http://localhost:5003 |
|
||||
|
||||
```bash
|
||||
cd <projet>
|
||||
|
|
@ -117,7 +110,7 @@ Utiliser `source .credentials` dans un script pour charger les variables.
|
|||
Lancer Claude depuis le sous-dossier du projet pour limiter le contexte :
|
||||
|
||||
```bash
|
||||
cd ~/Projects/org.alpinux.owni/static && claude
|
||||
cd ~/Projects/alpinux.static && claude
|
||||
cd ~/Projects/alpinux.wiki && claude
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue