-
-
Save grafikchaos/6032b86812e0f9a2081a6bf48d1d2ff1 to your computer and use it in GitHub Desktop.
Shopware 6 - ddev Quick Install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# What it does: | |
# - Creates a local Shopware installation using the Symfony Flex template for local development of client projects | |
# - Prerequisites: ddev installed on your machine, see https://ddev.com/get-started/ | |
# | |
# How to use: | |
# - create a project folder | |
# - copy this file into the project folder | |
# - chmod +x install.sh | |
# - ./install.sh | |
set -e | |
echo "Config ddev project ..." | |
ddev config --project-type=shopware6 --disable-settings-management --docroot=shopware/public --create-docroot --web-working-dir=/var/www/html/shopware \ | |
--database=mysql:8.0 --php-version=8.2 --nodejs-version=20 --webserver-type=apache-fpm \ | |
--web-environment-add="DATABASE_URL=mysql://db:db@db:3306/db,MAILER_DSN=smtp://localhost:1025?encryption=&auth_mode=,APP_URL=\${DDEV_PRIMARY_URL},APP_DEBUG=1,APP_ENV=dev" | |
ddev start | |
echo "Composer create-project shopware ..." | |
ddev exec "cd /var/www/html && rm -rf shopware/ && composer create-project shopware/production shopware -n" | |
echo "Installing Shopware ..." | |
ddev exec bin/console system:install --basic-setup --shop-locale=de-DE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment