MariaDB 11.8 als Zieldatenbank (Vorlage, Doku) und zusätzlicher CI-Testlauf gegen MariaDB
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a6adab64bb
commit
c7186e768e
3 files changed
+25
-5
No files matched your search
@@ -15,8 +15,8 @@ APP_MAINTENANCE_DRIVER=file
|
|||||||
LOG_CHANNEL=daily
|
LOG_CHANNEL=daily
|
||||||
LOG_LEVEL=warning
|
LOG_LEVEL=warning
|
||||||
|
|
||||||
# Strato MySQL (Kundenlogin › Datenbanken und Webspace › Datenbanken verwalten)
|
# Strato MariaDB 11.8 (Kundenlogin › Datenbanken und Webspace › Datenbanken verwalten)
|
||||||
DB_CONNECTION=mysql
|
DB_CONNECTION=mariadb
|
||||||
DB_HOST=
|
DB_HOST=
|
||||||
DB_PORT=3306
|
DB_PORT=3306
|
||||||
DB_DATABASE=
|
DB_DATABASE=
|
||||||
|
|||||||
@@ -23,13 +23,23 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
services:
|
||||||
|
mariadb:
|
||||||
|
image: mariadb:11.8
|
||||||
|
env:
|
||||||
|
MARIADB_DATABASE: fewo_test
|
||||||
|
MARIADB_ROOT_PASSWORD: test
|
||||||
|
ports: ['3306:3306']
|
||||||
|
options: >-
|
||||||
|
--health-cmd="healthcheck.sh --connect --innodb_initialized"
|
||||||
|
--health-interval=5s --health-timeout=5s --health-retries=20
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: shivammathur/setup-php@v2
|
- uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
php-version: '8.4'
|
php-version: '8.4'
|
||||||
extensions: mbstring, intl, gd, exif, zip, pdo_sqlite, sqlite3, fileinfo, openssl
|
extensions: mbstring, intl, gd, exif, zip, pdo_sqlite, sqlite3, pdo_mysql, fileinfo, openssl
|
||||||
tools: composer:v2
|
tools: composer:v2
|
||||||
|
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
@@ -45,7 +55,17 @@ jobs:
|
|||||||
cp .env.example .env
|
cp .env.example .env
|
||||||
php artisan key:generate
|
php artisan key:generate
|
||||||
|
|
||||||
- name: Tests
|
- name: Tests (SQLite)
|
||||||
|
run: php artisan test --compact
|
||||||
|
|
||||||
|
- name: Tests (MariaDB 11.8, wie auf Strato)
|
||||||
|
env:
|
||||||
|
DB_CONNECTION: mariadb
|
||||||
|
DB_HOST: 127.0.0.1
|
||||||
|
DB_PORT: '3306'
|
||||||
|
DB_DATABASE: fewo_test
|
||||||
|
DB_USERNAME: root
|
||||||
|
DB_PASSWORD: test
|
||||||
run: php artisan test --compact
|
run: php artisan test --compact
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
|
|||||||
+1
-1
@@ -41,7 +41,7 @@ ## 3. Einmalige Einrichtung bei Strato
|
|||||||
ls /opt | grep RZphp # PHP-CLI-Pfad, z. B. /opt/RZphp84/bin/php-cli
|
ls /opt | grep RZphp # PHP-CLI-Pfad, z. B. /opt/RZphp84/bin/php-cli
|
||||||
/opt/RZphp84/bin/php-cli -v
|
/opt/RZphp84/bin/php-cli -v
|
||||||
```
|
```
|
||||||
4. **MySQL-Datenbank** anlegen (Datenbanken verwalten); Host, Name, Benutzer, Passwort notieren.
|
4. **Datenbank MariaDB 11.8** anlegen (Datenbanken verwalten; nicht MySQL 8.0 – Support endete im April 2026); Host, Name, Benutzer, Passwort notieren. In `shared/.env`: `DB_CONNECTION=mariadb`.
|
||||||
5. Lokal `scripts/deploy.example.env` nach `scripts/deploy.production.env` kopieren und ausfüllen (wird nicht committet).
|
5. Lokal `scripts/deploy.example.env` nach `scripts/deploy.production.env` kopieren und ausfüllen (wird nicht committet).
|
||||||
6. `bash scripts/deploy.sh production setup` – legt die Ordner an und zeigt die PHP-Version.
|
6. `bash scripts/deploy.sh production setup` – legt die Ordner an und zeigt die PHP-Version.
|
||||||
7. `.env.production.example` ausfüllen (u. a. `APP_KEY` via `php artisan key:generate --show`, Datenbank, SMTP/IMAP-Passwort, Tokens) und auf den Server nach `<DEPLOY_PATH>/shared/.env` kopieren (z. B. per SFTP).
|
7. `.env.production.example` ausfüllen (u. a. `APP_KEY` via `php artisan key:generate --show`, Datenbank, SMTP/IMAP-Passwort, Tokens) und auf den Server nach `<DEPLOY_PATH>/shared/.env` kopieren (z. B. per SFTP).
|
||||||
|
|||||||
Reference in new issue
Block a user