– DDEV-Local is a Docker-based local development environment.
– It’s aimed at web developers, especially PHP developers.
– Developers run a website on their own local computer with almost no configuration of the computer.
– Developers can run multiple websites at the same time.
– Because Docker does all the heavy lifting, you don’t have to have even PHP or composer on your host computer.
– Has had first-class windows, macOS, and Linux support for ages.
DDEV-Local step-by-step
Step 1. Install Homebrew
Step 2. Install DDEV
Step 3. Install Docker
Step 4. Install Docker Compose
Step 5. Docker Post Installation Steps
Step 6. Set up a Shopware 5 via DDEV
Step 1. Install Homebrew
The recommended installation of DDEV is with Homebrew.
Homebrew is a package manager that simplifies the whole process. It is also known as Linuxbrew. (The Missing Package Manager for macOS (or Linux))
Run command in terminal
sh -c “$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)”
The system will finish with the installation of Homebrew. It will also prompt you about adding the script to your $PATH, in other words making it executable by typing the command brew in your terminal.
Type these terminal commands one by one:
test -d ~/.linuxbrew && eval $(~/.linuxbrew/bin/brew shellenv)
test -d /home/linuxbrew/.linuxbrew && eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
test -r ~/.profile && echo “eval \$($(brew –prefix)/bin/brew shellenv)” >>~/.profile
NOTE : If your system is based on RedHat, CentOS, or Fedora, replace .profile with .bash_profile.
Step 2. Install DDEV
Once Homebrew is in the $PATH, you can use it by typing the command brew:
brew tap drud/ddev && brew install ddev
This will install DDEV and other required dependencies.
Once DDEV is installed, you need to run the installation command for mkcert, a tool that provides valid SSL certificates for your local development environment. A site domain with a valid SSL certificate starts with https:// instead of https://
Type: mkcert -install
Check the system logs and resolve all missing dependencies if the installation was not successful and try again.
Step 3. Install Docker
Remove any old Docker installation on your system if available.
Now it is time to check if Docker is working properly.
Type: sudo docker run hello-world
As you can notice, you can run Docker only with root privileges. To manage Docker as a non-root user, it is necessary to create a docker group and add users to it.
Type:
sudo groupadd docker
sudo usermod -a -G docker $USER
newgrp docker
docker run hello-world
Step 6. Set up a Shopware 5 via DDEV
You can set up a Shopware 5 many ways, but this shows you one recommended technique
Create directory like ‘mkdir -p workspace/’
Clone shopware 5 via git repo.
Fire
ddev start
composer install
cp .env.ddev .env
On first start up import database: ddev import-db –src=.ddev/dump.sql
After big database changes renew the db dump (ddev export-db –gzip=false > .ddev/dump.sql)
It was expected outcome and timely delivered. They are good at communication and client services. Project was smooth enough to develop, communication was excellent. They always ask too many question to reach the correct destination. Would like to hire them again for next Business.
Kareloz Fitz
The team manages the project transparently and keeps an open line of communication. In addition to going above and beyond, they're also able to relay technical information in layman's terms.
Rick van Wijngaarden
Medcapz
They offered a number of possibilities which I didn't expect while customizing a standard Shopware Theme.
Jose Cruz
JDC Systems
The team is knowledgeable and always answered all my queries in the timely manner. I would recommend them for affordable and safe migration services.