Files
bobinoo/deploy/web/bootstrap.sh
T
romainandClaude Opus 5.5 2a9f790f19
deploy / deploy (push) Successful in 1m12s
Renommage technique azuucine/kino -> bobinoo (déploiement, chemins, runner, docs)
- Workflow : runs-on bobinoo (le runner a les deux étiquettes pendant la transition).
- Dossier de déploiement /srv/bobinoo (BOBINOO_ROOT, AZUUCINE_ROOT accepté pour compatibilité).
- Config nginx, bootstrap, RUNNER.md, admin.md, CLAUDE.md : conteneur et runner « bobinoo ».
- Nom du paquet npm et du plugin Vite.
- Inchangé volontairement : clés localStorage, bases IndexedDB, fonctions SQL azuu_*, secret Vault,
  format d'export, migrations (renommer casserait les données existantes).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 11:20:17 +01:00

29 lines
1.1 KiB
Bash
Executable File

#!/usr/bin/env bash
# À lancer UNE FOIS, en root, dans un conteneur bobinoo neuf (Debian 12) :
# lxc-attach -n bobinoo -- bash < deploy/web/bootstrap.sh
# Prérequis : /srv/bobinoo monté dans le conteneur (lxc.mount.entry ... srv/bobinoo none bind,ro).
# Ensuite, toute la configuration du site arrive avec les déploiements (deploy/nginx/site.conf).
set -euo pipefail
export DEBIAN_FRONTEND=noninteractive
apt-get update -qq && apt-get install -y -qq nginx >/dev/null
rm -f /etc/nginx/sites-enabled/default
echo 'include /srv/bobinoo/current/nginx/site.conf;' > /etc/nginx/conf.d/bobinoo.conf
cat > /etc/systemd/system/bobinoo-reload.path <<UNIT
[Unit]
Description=Recharge nginx apres un deploiement Bobinoo
[Path]
PathModified=/srv/bobinoo/.deployed
[Install]
WantedBy=multi-user.target
UNIT
cat > /etc/systemd/system/bobinoo-reload.service <<UNIT
[Unit]
Description=Reload nginx (deploiement Bobinoo)
[Service]
Type=oneshot
ExecStart=/bin/sh -c "nginx -t && systemctl reload nginx"
UNIT
systemctl daemon-reload
systemctl enable --now bobinoo-reload.path >/dev/null 2>&1
echo "ok : le premier déploiement (push sur main) activera le site"