Shopware installieren

Shopware-Repository klonen

  1. Klonen Sie das Shopware-6-Repository:
    git clone https://github.com/shopware/production.git my-shopware cd my-shopware

DDEV-Konfiguration

  1. DDEV in Ihrem Shopware-Projektverzeichnis initialisieren:
    ddev config
    • Project Name: my-shopware
    • Docroot Location: public
    • Project Type: shopware6
  2. DDEV-Projekt starten:
    ddev start
  3. Composer-Abhängigkeiten installieren:
    ddev composer install

Datenbank konfigurieren oder Daten aus dem Original kopieren

Sollten Daten aus dem Original kopiert werden, so darf das erst gemacht werden, nachdem die Installation abgeschlossen ist. Ansonsten macht die Installation nicht weiter, weil die Datenbank nicht leer ist.

  1. DDEV-Datenbank erstellen:
    ddev exec bin/console system:setup
    • Database host: db
    • Database port: 3306
    • Database name: db
    • Database user: db
    • Database password: db
  2. Shopware-Datenbank migrations durchführen:
    ddev exec bin/console system:migrate ddev exec bin/console system:install --basic-setup
  3. Admin-Benutzer erstellen:
    ddev exec bin/console user:create

Shopware 6 aufrufen

  1. Öffne den Browser und gehe zu: http://my-shopware.ddev.site
  2. Melde dich mit dem gerade erstellten Admin-Benutzer an.