Initial local backup snapshot
This commit is contained in:
commit
acd9e14ba5
367 changed files with 118038 additions and 0 deletions
21
deployments/prod/.env.example
Normal file
21
deployments/prod/.env.example
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
DATABASE_URL=mysql://portail:portail_password@db:3306/portail_associations
|
||||
JWT_SECRET=
|
||||
ADMIN_EMAIL=
|
||||
BOOTSTRAP_ADMIN_EMAIL=
|
||||
BOOTSTRAP_ADMIN_PASSWORD=
|
||||
BOOTSTRAP_ADMIN_NAME=
|
||||
BOOTSTRAP_USERS=
|
||||
APP_BASE_URL=https://www.portail-association973.com
|
||||
SMTP_PROVIDER=
|
||||
SMTP_HOST=
|
||||
SMTP_PORT=
|
||||
SMTP_USER=
|
||||
SMTP_PASS=
|
||||
SMTP_FROM=
|
||||
SMTP_SECURE=
|
||||
SMTP_REQUIRE_TLS=
|
||||
ENTREPRISE_API_TOKEN=
|
||||
GOOGLE_CLIENT_ID=
|
||||
GOOGLE_CLIENT_SECRET=
|
||||
FACEBOOK_APP_ID=
|
||||
FACEBOOK_APP_SECRET=
|
||||
50
deployments/prod/README.md
Normal file
50
deployments/prod/README.md
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
## Production portail-associations
|
||||
|
||||
Cette production tourne sur le VPS principal avec :
|
||||
|
||||
- dossier : `/home/ubuntu/portail-associations`
|
||||
- application : port `3000`
|
||||
- base MySQL : port `3307`
|
||||
- URL publique : `https://www.portail-association973.com`
|
||||
|
||||
### Fichier d'environnement
|
||||
|
||||
La production s'appuie sur le fichier :
|
||||
|
||||
- `/home/ubuntu/portail-associations/.env`
|
||||
|
||||
Ce fichier ne doit pas être écrasé automatiquement par les synchronisations de code.
|
||||
|
||||
Variables attendues au minimum :
|
||||
|
||||
- `DATABASE_URL`
|
||||
- `JWT_SECRET`
|
||||
- `ADMIN_EMAIL`
|
||||
- `BOOTSTRAP_ADMIN_EMAIL`
|
||||
- `BOOTSTRAP_ADMIN_PASSWORD`
|
||||
- `BOOTSTRAP_ADMIN_NAME`
|
||||
- `BOOTSTRAP_USERS`
|
||||
- `APP_BASE_URL`
|
||||
- `SMTP_*`
|
||||
- `ENTREPRISE_API_TOKEN`
|
||||
- `GOOGLE_CLIENT_ID`
|
||||
- `GOOGLE_CLIENT_SECRET`
|
||||
- `FACEBOOK_APP_ID`
|
||||
- `FACEBOOK_APP_SECRET`
|
||||
|
||||
### Déploiement recommandé
|
||||
|
||||
Depuis le poste local :
|
||||
|
||||
```bash
|
||||
./scripts/deploy-vps.sh prod
|
||||
```
|
||||
|
||||
Cette commande :
|
||||
|
||||
- vérifie le SSH
|
||||
- lance `pnpm check`
|
||||
- lance `pnpm build`
|
||||
- synchronise les sources utiles
|
||||
- exécute `docker compose --env-file .env up -d --build app`
|
||||
- contrôle la réponse HTTP publique
|
||||
Loading…
Add table
Add a link
Reference in a new issue