83 lines
2.1 KiB
Markdown
83 lines
2.1 KiB
Markdown
# Deployment
|
|
|
|
Dieses Repository enthaelt eine statische Website direkt im Repo-Root. Es gibt aktuell keinen Build-Schritt und keinen `dist`- oder `build`-Ordner.
|
|
|
|
## Live-Deployment
|
|
|
|
- Protokoll: `FTP`
|
|
- Host: `194.230.87.205`
|
|
- Port: `21`
|
|
- Zielverzeichnis auf dem Server: `/httpdocs/`
|
|
- Webroot: `httpdocs`
|
|
|
|
Die Live-Website wird nicht als komplettes Repository deployed, sondern als statische Dateimenge.
|
|
|
|
## Was hochgeladen wird
|
|
|
|
Diese Dateien und Ordner werden nach `httpdocs/` hochgeladen:
|
|
|
|
- `index.html`
|
|
- `styles.css`
|
|
- `script.js`
|
|
- `lupe.svg`
|
|
- `media/` komplett
|
|
|
|
## Was nicht hochgeladen wird
|
|
|
|
Diese Dateien und Ordner bleiben lokal im Repository:
|
|
|
|
- `.git/`
|
|
- `.gitignore`
|
|
- `AGENTS.md`
|
|
- `README.md`
|
|
- `DEPLOYMENT.md`
|
|
- `deploy.php`
|
|
- `deploy-staging.sh`
|
|
- `scripts/`
|
|
- sonstige lokale Hilfs- oder Repo-Dateien
|
|
|
|
## Manueller Upload
|
|
|
|
Der Upload kann direkt per `curl` ueber FTP erfolgen. Beispiel fuer einzelne Root-Dateien:
|
|
|
|
```bash
|
|
curl --user 'USER:PASS' -T index.html ftp://HOST:21/httpdocs/index.html
|
|
curl --user 'USER:PASS' -T styles.css ftp://HOST:21/httpdocs/styles.css
|
|
curl --user 'USER:PASS' -T script.js ftp://HOST:21/httpdocs/script.js
|
|
curl --user 'USER:PASS' -T lupe.svg ftp://HOST:21/httpdocs/lupe.svg
|
|
```
|
|
|
|
Beispiel fuer den Ordner `media/`:
|
|
|
|
```bash
|
|
find media -type f ! -name '.DS_Store' | while IFS= read -r f; do
|
|
curl --user 'USER:PASS' --ftp-create-dirs -T "$f" "ftp://HOST:21/httpdocs/$f"
|
|
done
|
|
```
|
|
|
|
## Verifikation
|
|
|
|
Nach dem Upload sollte mindestens geprueft werden, ob diese Dateien remote vorhanden sind:
|
|
|
|
- `httpdocs/index.html`
|
|
- `httpdocs/styles.css`
|
|
- `httpdocs/script.js`
|
|
- `httpdocs/lupe.svg`
|
|
- `httpdocs/media/*`
|
|
|
|
Optional kann die Dateiliste per FTP geprueft werden:
|
|
|
|
```bash
|
|
curl --disable-epsv --user 'USER:PASS' --list-only ftp://HOST:21/httpdocs/
|
|
curl --disable-epsv --user 'USER:PASS' --list-only ftp://HOST:21/httpdocs/media/
|
|
```
|
|
|
|
## Hinweis zum Alt-Setup
|
|
|
|
Im Repository liegen noch Dateien fuer ein frueheres Synology-/Webhook-Setup:
|
|
|
|
- `deploy.php`
|
|
- `deploy-staging.sh`
|
|
|
|
Dieses Setup ist fuer den aktuellen Live-Upload nicht noetig. Massgeblich ist derzeit der manuelle FTP-Upload nach `httpdocs/`.
|