1. GitHub Authenticatie (server)
1.1 Inloggen met GitHub CLI
Voer dit altijd uit vanuit je home directory:
gh auth login -h github.com
Kies:
GitHub.com
SSH
Skip
Login with a web browser
Ga naar: https://github.com/login/device
Voer de code in
Druk Enter in de terminal
Controleer:
gh auth status
2. Git Remote Configuratie (SSH)
Gebruik altijd SSH voor Git‑operaties:
git remote set-url origin git@github.com:theo-langstraat/dailyverses-nextcloud.git
Controleren:
git remote -v
3. Build & Package
3.1 Dependencies installeren
npm install
composer install --no-dev
3.2 Frontend builden
npm run build
3.3 ZIP‑pakket maken (zoals Nextcloud App Store vereist)
./package.sh 1.0.0
Dit genereert:
build/dailyverses-1.0.0.zip
4. Testen in lokale Nextcloud‑installatie
Verwijder oude versie:
rm -rf /var/www/nextcloud/apps/dailyverses
Uitpakken:
unzip build/dailyverses-1.0.0.zip -d /var/www/nextcloud/apps/
Rechten herstellen:
chown -R www-data:www-data /var/www/nextcloud/apps/dailyverses
App inschakelen:
sudo -u www-data php /var/www/nextcloud/occ app:enable dailyverses
5. Release maken op GitHub
5.1 Taggen (indien nodig)
git tag v1.0.0
git push origin v1.0.0
5.2 Release aanmaken
gh release create 1.0.0 build/dailyverses-1.0.0.zip --notes "Release 1.0.0"
6. Uploaden naar Nextcloud App Store
Ga naar:
Upload:
dailyverses-1.0.0.zipappinfo/info.xml
Vul release notes in.
Publiceer.
7. Problemen oplossen
7.1 GitHub CLI werkt niet / blijft hangen
Verwijder tekstbrowsers:
sudo apt remove w3m lynx links elinks links2
Reset GitHub CLI config:
rm -rf ~/.config/gh
mkdir ~/.config/gh
chmod 700 ~/.config/gh
7.2 Git vraagt om gebruikersnaam
Remote staat op HTTPS. Fix:
git remote set-url origin git@github.com:theo-langstraat/dailyverses-nextcloud.git
7.3 Debuggen
GITHUB_DEBUG=1 gh auth login -h github.com