This setup works for Shopware 5 and Shopware 6
- Clone the repository somewhere
- Optional: Do a symlink from swdc to
/usr/local/bin/swdc
- Copy
.env.dist
to$HOME/.config/swdc/env
or just runswdc
swdc up
: Starts the docker-compose with the containers
- Create a new folder in
~/Code/
with your project name and checkout a shopware installation - Run
swdc build [Folder Name]
- After the installation succeed, can you open the shop with the command
swdc open [Folder Name]
- You may change the code directory which the shopware installations lie in by
modifying the
CODE_DIRECTORY
variable in$HOME/.config/swdc/env
-
You can override the image, hosts and the used ssl certificate
-
FOLDER_NAME has to be in uppercase. Example for image: Folder name is: sw5, VHOST_SW5_IMAGE
-
VHOST_FOLDER_NAME_IMAGE
- Allows changing the image that is used for this directory.
- Files are mount to /var/www/html, the image should expose a webservice at port 80
-
VHOST_FOLDER_NAME_HOSTS
- This can be an list of hosts comma seperated. The first host will be used for the Installation
-
VHOST_FOLDER_NAME_CERT_NAME
- This can be used to define another ssl certificate for this vhost.
- Example:
shop
. You will need following files~/.config/swdc/ssl/shop.crt
and~/.config/swdc/ssl/shop.key
swdc command-list
swdc debug-logs
Please use this command to collect informations for a Github Issueswdc debug
Symfony Var-dump Server, use swdump() in your Codeswdc down
Stops the containersswdc generate-command-list
Generates the command list for README.mdswdc help
swdc log
Shows the log of the specified containerswdc mysql
Starts the mysql client on the cli containerswdc open
Opens the given shop in browserswdc shell-root
Joins into the cli container as root userswdc shell
Joins into the cli container as normal userswdc update-images
Updates used docker imagesswdc up
Starts the containersswdc up xdebug
Starts the containers with xdebug enabled
swdc apply
Applys a database fixtureswdc build
Reinstalls the databaseswdc config
Applies fixture to the config.phpswdc download-testimages
Download and extract shopware testimagesswdc hooks
Fixes the hooks for gitswdc mink
Run mink testsswdc snippets
Reimports all snippetsswdc test
Runs all testsswdc unit
Runs only unit testsswdc update-test
Simulate a update
swdc build
Reinstalls the database
swdc drop
Drops the databaseswdc es-clear
Deletes everything from elasticsearch serverswdc rsnap
Loads back a created snapshotswdc snap
Creates a new snapshot
swdc configure
Opens the configuration .env file with your favourite editor
swdc admin-build
Builds the administration and executes assets installswdc admin-watch
Start the admin watcher at port 8181swdc build
Reinstalls the database- available parameter
--without-demo-data
Don't generate demo-data--without-building
Don't build the storefront and administration
- available parameter
swdc storefront-build
Builds the storefrontswdc storefront-watch
Recompile the storefront when changes in its resources are detectedswdc unit
Runs all unit tests
- shopware/shopware-classic-nginx
- shopware/shopware-platform-nginx
- shopware/shopware-classic-apache
- shopware/shopware-platform-apache
- shopware/shopware-mysql
- shopware/shopware-cli
- You can use http://FOLDERNAME.dev.localhost
- Or use
swdc open [Folder Name]
I dont't develop on Windows or Mac. Try it out by own
It is working on macOS if you have realpath
available. I tested with: realpath for OS X
MailDev: http://mail.localhost
Host: smtp
Port: 25
no Login
no Encryption
no authetification
Host: mysql
User: root
Password: root
PhpMyAdmin / Adminer: http://db.localhost
Access es directly: http://es.localhost
Access cerebro: http://cerebro.localhost
User: demo
Password: demo
User: admin
Password: shopware
Host: minio
Key: AKIAIOSFODNN7EXAMPLE
Secret-Key: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
Bucket can be created on page http://localhost:9000/minio/