Deployment: paketspezifischer Strato-SSH-Server, Tilde im Schlüsselpfad

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lars StommerandClaude Opus 5.5 committed 2026-10-22 15:57:25 +02:00
1 parent c7186e768e
commit 769e6b7e6e
3 files changed
+6 -5

No files matched your search

+2 -2
View File
@@ -34,10 +34,10 @@ ## 2. SSH oder SFTP?
## 3. Einmalige Einrichtung bei Strato
1. **PHP-Version** auf 8.4 stellen (Datenbanken und Webspace › PHP-Version).
2. **SSH-Zugang** anlegen (SFTP & SSH); Benutzername notieren. Eigenen SSH-Schlüssel hinterlegen oder einmalig `ssh-copy-id <benutzer>@ssh.strato.de`.
2. **SSH-Zugang** anlegen (SFTP & SSH, Protokoll „SFTP + SSH“); **Benutzername und Server** aus „Details“ notieren – der Server ist paketspezifisch (z. B. `12345678.ssh.w1.strato.hosting`), nicht `ssh.strato.de`. Eigenen SSH-Schlüssel hinterlegen oder einmalig `ssh-copy-id -i ~/.ssh/strato_fewo.pub <benutzer>@<server>`.
3. Per SSH prüfen:
```bash
ssh <benutzer>@ssh.strato.de
ssh <benutzer>@<server>
ls /opt | grep RZphp # PHP-CLI-Pfad, z. B. /opt/RZphp84/bin/php-cli
/opt/RZphp84/bin/php-cli -v
```
+3 -3
View File
@@ -1,8 +1,8 @@
# Copy to scripts/deploy.production.env (or deploy.staging.env) and fill in. These files are not committed.
# SSH access (Strato: Kundenlogin › Datenbanken und Webspace › SFTP & SSH)
DEPLOY_HOST=ssh.strato.de
DEPLOY_USER=www.fewo-stommer.de
# SSH access (Strato: Kundenlogin › Datenbanken und Webspace › SFTP & SSH › Details › "Server", e.g. 12345678.ssh.w1.strato.hosting)
DEPLOY_HOST=12345678.ssh.w1.strato.hosting
DEPLOY_USER=stu123456789
DEPLOY_PORT=22
# Optional: private key file (otherwise the SSH agent / default key is used)
# DEPLOY_SSH_KEY=~/.ssh/strato_fewo
+1
View File
@@ -37,6 +37,7 @@ DEPLOY_PHP="${DEPLOY_PHP:-/opt/RZphp84/bin/php-cli}"
DEPLOY_KEEP="${DEPLOY_KEEP:-5}"
DEPLOY_URL="${DEPLOY_URL:-}"
DEPLOY_SSH_KEY="${DEPLOY_SSH_KEY:-}"
DEPLOY_SSH_KEY="${DEPLOY_SSH_KEY/#\~/$HOME}"
COMPOSER_BIN="${COMPOSER_BIN:-composer}"
say() { printf '\n\033[1;34m▶ %s\033[0m\n' "$*"; }