Göggel Servers¶
Deploy Notes¶
- Index
fremdbestand:sql CREATE INDEX idx_fremdbestand_lookup ON shop_fremdbestand_bester_lieferant(artikel, profil, land, firma); - Produktionscluster:
/var/www/shared/private/muss für PHP beschreibbar sein.
Generelles¶
httpdocsist nicht durch PHP beschreibbar.- Uploads, Logs, Locks und temporäre Dateien liegen primär unter
/var/www/shared/private/. - Vhost-spezifische Runtime-Dateien liegen alternativ unter
<vhost>/var/. - Öffentliche Assets, die auch über
cdn.goeggel-shop.comerreichbar sind in/var/www/shared/public/.
Database Migrationen¶
- Backup-Dump per
scpauf den dogado-Server kopieren. - DB-Backup-Dump per CLI einspielen und den host mit angeben:
-h <dogado-db-server-ip>.
Move Folders/Files Between Vhosts¶
- In Vhost A per SSH einloggen.
- Ordner als Archiv packen.
- Archiv nach
/var/www/shared/private/uploads/kopieren. - In Vhost B per SSH einloggen.
- Archiv aus
/var/www/shared/private/uploads/an das Ziel kopieren und entpacken.
Server Folder Structure¶
/var/www/
├── shared/ # SHARED_PATH - NTFS, cross-vhost storage
│ ├── public/ # SHARED_PUBLIC_PATH - CDN / public assets
│ │ ├── images/
│ │ ├── pdf/
│ │ └── uploads/
│ └── private/ # SHARED_PRIVATE_PATH - not web-accessible
│ ├── config/
│ ├── locks/ # SHARED_LOCK_PATH - cronjob locks
│ ├── logs/ # SHARED_LOG_PATH - application logs
│ │ └── cron/
│ ├── sessions/
│ ├── temp/ # SHARED_TEMP_PATH
│ ├── tmp/ # legacy temp path
│ ├── uploads/
│ └── wawi/ # WAWI_PATH
│ ├── export/ # WAWI_EXPORT_PATH
│ └── import/ # WAWI_IMPORT_PATH
│
├── goeggel-shop.com/ # VHOST_PATH
│ ├── httpdocs/ # HTTPDOCS_PATH
│ │ ├── admin/
│ │ ├── shop/ # APP_PATH - production shop
│ │ │ ├── assets/ # APP_ASSETS_PATH
│ │ │ ├── config/ # APP_CONFIG_PATH
│ │ │ ├── includes/ # APP_INCLUDES_PATH
│ │ │ │ └── paths.inc.php # APP_BOOTSTRAP
│ │ │ ├── templates/ # APP_TEMPLATE_PATH
│ │ │ └── vendor/ # APP_VENDOR_PATH
│ │ ├── shop_dev/
│ │ └── shop_test/
│ ├── logs/ # server logs
│ ├── var/ # APP_VAR_PATH
│ │ ├── sessions/ # session fallback
│ │ └── shop/
│ │ ├── sessions/
│ │ └── temp/ # APP_TEMP_PATH
│ └── .ssh/ # SSH keys / deploy tokens
│
└── reifenbasis.de/
├── httpdocs/
│ ├── admin/
│ ├── shop_dev/
│ └── shop_test/
├── logs/ # server logs
├── var/
│ └── sessions/ # session fallback
├── .ssh/ # SSH keys / deploy tokens
├── .config/
│ └── composer/
├── .local/
│ └── share/
└── misc/ # random / legacy files
Path Constants¶
| Constant | Path |
|---|---|
WWW_ROOT |
/var/www |
SHARED_PATH |
/var/www/shared |
SHARED_PUBLIC_PATH |
/var/www/shared/public |
SHARED_PRIVATE_PATH |
/var/www/shared/private |
SHARED_LOG_PATH |
/var/www/shared/private/logs |
WAWI_PATH |
/var/www/shared/private/wawi |
WAWI_EXPORT_PATH |
/var/www/shared/private/wawi/export |
WAWI_IMPORT_PATH |
/var/www/shared/private/wawi/import |
VHOST_PATH |
/var/www/goeggel-shop.com |
HTTPDOCS_PATH |
/var/www/goeggel-shop.com/httpdocs |
APP_PATH |
/var/www/goeggel-shop.com/httpdocs/shop |
APP_BOOTSTRAP |
/var/www/goeggel-shop.com/httpdocs/shop/includes/paths.inc.php |
APP_INCLUDES_PATH |
/var/www/goeggel-shop.com/httpdocs/shop/includes |
APP_ASSETS_PATH |
/var/www/goeggel-shop.com/httpdocs/shop/assets |
APP_CONFIG_PATH |
/var/www/goeggel-shop.com/httpdocs/shop/config |
APP_VENDOR_PATH |
/var/www/goeggel-shop.com/httpdocs/shop/vendor |
APP_TEMPLATE_PATH |
/var/www/goeggel-shop.com/httpdocs/shop/templates |
APP_VAR_PATH |
/var/www/goeggel-shop.com/var |
APP_TEMP_PATH |
/var/www/goeggel-shop.com/var/shop/temp |