Dockware Setup (Docker)
We recommanded dockware for local docker development. It's absolutly easy to manage projects setups
Shopware 6.7 (B2Bsellers v4.x.x) Special Configuration
Shopware 6.7 introduces changes in the build tooling, replacing webpack with Vite. As a result, some new configurations are necessary for plugin development, including the B2Bsellers suite. These configurations are relevant for all plugin developers targeting Shopware 6.7.
Docker Compose Configuration
First, examine your docker-compose.yml
file. Here's an example setup:
version: "3"
services:
shopware:
image: dockware/dev:6.7.1.2
container_name: shopware6712
ports:
- "80:80"
- "3306:3306"
- "22:22"
- "8888:8888"
- "9999:9999"
- "9998:9998"
- "5333-5356:5333-5356"
networks:
- web
volumes:
- "shopware6712_shop_volume:/var/www/html"
- "shopware6712_db_volume:/var/lib/mysql"
networks:
web:
external: false
volumes:
shopware6712_shop_volume:
driver: local
shopware6712_db_volume:
driver: local
Ensure ports 5333-5356
are open to facilitate Vite operations.
Running the Admin Watcher
Start the watcher for the Admin with the following command:
export VITE_HOST='0.0.0.0' && export VITE_EXTENSIONS_SERVER_SCHEME='http' && export VITE_EXTENSIONS_SERVER_HOST='localhost' && make watch-admin
This will enable the admin-watcher to function correctly, leveraging Vite's capabilities.
Last updated
Was this helpful?