diff --git a/docs/INITIAL_IMPORT.md b/docs/INITIAL_IMPORT.md new file mode 100644 index 0000000..0ad992d --- /dev/null +++ b/docs/INITIAL_IMPORT.md @@ -0,0 +1,44 @@ +# Einmaliger Import des vorhandenen Produktiv-Quellstands + +Das Repository wurde zunächst mit GitHub-spezifischen Dateien initialisiert. Der vollständige bestehende Landwelle-Quellstand wird einmalig aus dem Produktivverzeichnis in eine separate Arbeitskopie übernommen und nach `main` gepusht. + +Die produktive Installation selbst wird dabei nicht verändert. + +```bash +cd /root +rm -rf landwelle-github + +git clone git@github.com:opengenesislink/landwelle.git landwelle-github + +rsync -a /home/users/slmmradio/www/landwelle.de/ /root/landwelle-github/ \ + --exclude='.git/' \ + --exclude='.github/' \ + --exclude='.gitignore' \ + --exclude='README.md' \ + --exclude='.env' \ + --exclude='.env.*' \ + --exclude='dist/' \ + --exclude='bin/' \ + --exclude='uploads/' \ + --exclude='data/' \ + --exclude='media/' \ + --exclude='ai-audio/' \ + --exclude='downloads/' \ + --exclude='*.log' \ + --exclude='*.zip' \ + --exclude='*.sha256' \ + --exclude='PACKAGE_MANIFEST-*.txt' \ + --exclude='VALIDATION-*.txt' \ + --exclude='*service-account*.json' + +cd /root/landwelle-github + +git status +git add -A +git commit -m 'feat: import Landwelle v1.5.62 source' +git push origin main +``` + +Falls der Server noch keinen GitHub-SSH-Zugang besitzt, zuerst `ssh -T git@github.com` prüfen und einen vorhandenen autorisierten SSH-Key verwenden. Zugangsdaten oder private Schlüssel gehören nicht in das Repository. + +Nach dem Import ist `main` die verbindliche Quellcode-Basis. Künftige Releases werden dort zuerst committed und anschließend produktiv ausgerollt.