From 769e6b7e6e86c0449e614cc3586d03577522cdef Mon Sep 17 00:00:00 2001 From: Lars Stommer Date: Thu, 22 Oct 2026 15:57:25 +0200 Subject: [PATCH] =?UTF-8?q?Deployment:=20paketspezifischer=20Strato-SSH-Se?= =?UTF-8?q?rver,=20Tilde=20im=20Schl=C3=BCsselpfad?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- docs/DEPLOYMENT.md | 4 ++-- scripts/deploy.example.env | 6 +++--- scripts/deploy.sh | 1 + 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/DEPLOYMENT.md b/docs/DEPLOYMENT.md index 8cdc4e9..52a3689 100644 --- a/docs/DEPLOYMENT.md +++ b/docs/DEPLOYMENT.md @@ -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 @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 @`. 3. Per SSH prüfen: ```bash - ssh @ssh.strato.de + ssh @ ls /opt | grep RZphp # PHP-CLI-Pfad, z. B. /opt/RZphp84/bin/php-cli /opt/RZphp84/bin/php-cli -v ``` diff --git a/scripts/deploy.example.env b/scripts/deploy.example.env index 92725e6..f34349c 100644 --- a/scripts/deploy.example.env +++ b/scripts/deploy.example.env @@ -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 diff --git a/scripts/deploy.sh b/scripts/deploy.sh index f52d7e6..0cb9853 100644 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -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' "$*"; }