Hallo,
wenn ich in der .env auf dev umschalte erhalte ich folgende Fehlermeldung:
Stack Trace
RuntimeException:
Could not connect to database. Message from SQL Server: An exception occurred in driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for _placeholder.test failed: Name or service not known
at /home/clients/xxxxxxxxx/web/dstock/vendor/shopware/core/HttpKernel.php:86
at Shopware\Core\HttpKernel->handle(object(Request))
(/home/clients/xxxxxxxxxxxx/web/dstock/public/index.php:85)
in der .env habe ich von _placeholder.test nichts gefunden.
Hier die env mit abgeänderten angaben.
# This file is a "template" of which env vars need to be defined for your application
# Copy this file to .env file for development, create environment variables when deploying to production
# https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration
###> symfony/framework-bundle ###
APP_ENV=prod
APP_SECRET=def0000000000000000000000000000000000000000000000000000000000000000000001
APP_URL=https://d-stock.ch
#TRUSTED_PROXIES=127.0.0.1,127.0.0.2
#TRUSTED_HOSTS=localhost,example.com
###< symfony/framework-bundle ###
###> symfony/swiftmailer-bundle ###
# For Gmail as a transport, use: "gmail://username:password@localhost"
# For a generic SMTP server, use: "smtp://localhost:25?encryption=&auth_mode="
# Delivery is disabled by default via "null://localhost"
# MAILER_URL=null://localhost
MAILER_URL=smtp://mail.ixxxxxxxxk.ch:465?username=shop@dxxxxxx.ch=&password=xxxxxxxxxx
###< symfony/swiftmailer-bundle ###
DATABASE_URL=mysql://kpyd_admin:nwnfnnwnfn.myd.infomaniak.com:5678/xxxx_xxxxxxx
COMPOSER_HOME=/home/clients/12345678901234567890/web/xxxxxxxxxx/var/cache/composer
INSTANCE_ID=xxxxnxnxnxnxnxnxnxnxnxnxxn
BLUE_GREEN_DEPLOYMENT=0
SHOPWARE_HTTP_CACHE_ENABLED=1
SHOPWARE_HTTP_DEFAULT_TTL=7200
SHOPWARE_ES_HOSTS=""
SHOPWARE_ES_ENABLED="0"
SHOPWARE_ES_INDEXING_ENABLED="0"
SHOPWARE_ES_INDEX_PREFIX="sw"
SHOPWARE_CDN_STRATEGY_DEFAULT="id"
Dann suche mal bei Google nach „php_network_getaddresses failed: Name or service not known“. Das scheint ein Problem mit PHP zu sein und weniger ein Shopware-Problem.