Automatisches Deployment nach Strato (atomare Releases, Rollback, Gitea Actions)
- scripts/deploy.sh: Build aus Git-Stand (Composer ohne Dev, Vite), Upload per SSH, Migration, Caches, atomarer Umschalter current -> releases/<zeit>, Gesundheitscheck mit automatischem Rollback; Befehle setup/deploy/rollback/releases/artisan; lokaler Testmodus - .gitea/workflows/deploy.yml: Tests bei jedem Push, Deployment bei Tags v* oder per Knopfdruck - Vorlagen scripts/deploy.example.env und .env.production.example (Strato MySQL, SMTP, IMAP) - Scheduler-Endpunkt /automation/scheduler als Ausweich für fehlende Cronjobs - ProductionSeeder für die Ersteinrichtung ohne Testdaten Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
66e82d61f5
commit
8d904660b9
10 files changed
+460
No files matched your search
@@ -0,0 +1,23 @@
|
||||
# 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
|
||||
DEPLOY_PORT=22
|
||||
# Optional: private key file (otherwise the SSH agent / default key is used)
|
||||
# DEPLOY_SSH_KEY=~/.ssh/strato_fewo
|
||||
|
||||
# Folder below the SSH start directory. The domain's target directory must be <DEPLOY_PATH>/current/public.
|
||||
DEPLOY_PATH=fewo-production
|
||||
|
||||
# PHP CLI on Strato shared hosting: /opt/RZphp<major><minor>/bin/php-cli (check with: ls /opt)
|
||||
DEPLOY_PHP=/opt/RZphp84/bin/php-cli
|
||||
|
||||
# Public address for the health check after switching (empty = no check, no automatic rollback)
|
||||
DEPLOY_URL=https://www.fewo-stommer.de
|
||||
|
||||
# Number of releases kept on the server for rollbacks
|
||||
DEPLOY_KEEP=5
|
||||
|
||||
# Local build: how Composer is called (Windows example: "php /c/path/to/composer.phar")
|
||||
# COMPOSER_BIN=composer
|
||||
Reference in new issue
Block a user