Ich habe einen Neuen Shop von 5.1.6 auf 5.2.3 upgedatet, nun funktioniert leider Grunt nicht mehr, bisher konnte ich so Grunt installieren und starten:
1. Grunt installieren
Im Verzeichnis "src/shopware/themes/" folgendes ausführen:sudo npm install grunt sudo npm install grunt-cli sudo npm install grunt-contrib-less sudo npm install grunt-contrib-watch sudo npm install grunt-contrib-uglify sudo npm install grunt-contrib-jshint2. Konfigurationsdatei erstellen
Im Verzeichnis "src/shopware/" folgendes ausführen:php bin/console sw:theme:dump:configuration3. Grunt watcher starten
Im Verzeichnis "src/shopware/themes/" folgendes ausführen:grunt
Nun erhalte ich beim Ausführen von Schritt 2 folgenden Fehler:
WARNING! Could not connect to database. Message from SQL Server: SQLSTATE[HY000] [2002] No such file or directory in /src/shopware/engine/Shopware/Components/DependencyInjection/Bridge/Db.php
[Symfony\Component\DependencyInjection\Exception\RuntimeException]
You have requested a synthetic service ("db_connection"). The DIC does not know how to construct this service.
Leider ist die Produktion mit dem Backend Less compiler sehr langsam in einer Entwicklungsumgebung, Grunt hat das ganze gewaltig beschleunigt. Hoffe auf Alternativen oder behebungen für den Fehler.
Grüße, Alex