Shopware 6无法为请求找到匹配的销售渠道

发布于 2025-02-04 15:35:54 字数 1492 浏览 5 评论 0原文

我已经陷入了足够长的时间,基本上我想尝试使用Shopware 6作为PWA。

要安装Shopware,我使用代客 git

但是我永远无法以正确的方式使用安装shopware6,因为我总是遇到相同的错误:

“

这就是我正在安装shopware6:

  1. 克隆git repo-> https://github.com/shopware/production;

  2. CD /生产; -composer install(安装依赖项)

  3. ./ bin/console系统:设置 - 在此步骤中,我被要求输入一些数据:

  4. 应用程序环境[dev]:// dev;

    • url/您的公共文件夹[http:// localhost]:// http://production.test;
    • 蓝色绿色部署(是/否)[是]://是
    • 数据库用户[app]:// root
    • 数据库密码:// root
    • 数据库主机[localhost]://
    • 数据库端口[3306]://
    • 数据库名称[Shopware]://
    • 数据库SSL CA路径[]://
    • 数据库SSL CERT PATH []://
    • 数据库SSL密钥路径[]://
  • SKIP验证数据库服务器的SSL证书? (是/否)[否]://否

曾经安装了Shopware 6,我将访问 Production/public 创建一个Vacret Link (虚拟主机)。

valet link production.test

我在 http://production.test.test

此时访问上述错误:无法找到请求的匹配销售渠道: http://production.test/” 。确保域映射正确。

I have been stuck on this for long enough now, basically I am wanting to try and use Shopware 6 as a PWA.

To install shopware I make use of Valet and Git.

But I am never able to use install Shopware6 in the right way because I am always getting the same error:

Shopware error

This is how I am installing Shopware6:

  1. clone git repo -->https://github.com/shopware/production;

  2. cd /production;
    -composer install (to install dependencies)

  3. ./bin/console system:setup - At this step I am asked to input some datas:

  4. Application environment [dev]: //dev;

    • URL to your /public folder [http://localhost]: // http://production.test;
    • Blue Green Deployment (yes/no) [yes]: //yes
    • Database user [app]: //root
    • Database password: //root
    • Database host [localhost]: //
    • Database port [3306]: //
    • Database name [shopware]: //
    • Database SSL CA Path []: //
    • Database SSL Cert Path []: //
    • Database SSL Key Path []: //
  • Skip verification of the database server's SSL certificate? (yes/no) [no]: //no

Once Shopware 6 is installed I would visit production/public to create a valet link (virtual host).

valet link production.test

I visit my virtual host on http://production.test

At this moment I always get the above mentioned error: Unable to find a matching sales channel for the request: http://production.test/". Please make sure the domain mapping is correct.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

酒浓于脸红 2025-02-11 15:35:54

这有点奇怪。好消息是,您的安装似乎在起作用,但是由于某种原因,它听起来像您的saleschannel->未设置域。尝试登录 http://production.test/admin &去店面销售渠道。在那里您可以配置域。
您可以在这里看到它:

This is a bit odd. Good news is that your installation seems to be working, but for some reason it sounds like your SalesChannel -> domain is not set. Try logging into http://production.test/admin & going to the Storefront sales channel. There you can configure the domain.
You can see it here as an example:
enter image description here

蓝眸 2025-02-11 15:35:54

面临6.5分支机构的问题。

在下面执行命令。

php bin/shopware sales-channel:list
php bin/shopware sales-channel:create:storefront --url http://production.test

在URL参数上没有落后的斜线

Was facing issue with the 6.5 branch.

Executed below commands.

php bin/shopware sales-channel:list
php bin/shopware sales-channel:create:storefront --url http://production.test

No trailing slash on URL param

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文