Shopware 6无法为请求找到匹配的销售渠道
我已经陷入了足够长的时间,基本上我想尝试使用Shopware 6作为PWA。
要安装Shopware,我使用代客和 git 。
但是我永远无法以正确的方式使用安装shopware6,因为我总是遇到相同的错误:
这就是我正在安装shopware6:
克隆git repo-> https://github.com/shopware/production;
CD /生产; -composer install(安装依赖项)
./ bin/console系统:设置 - 在此步骤中,我被要求输入一些数据:
应用程序环境[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:
This is how I am installing Shopware6:
clone git repo -->https://github.com/shopware/production;
cd /production;
-composer install (to install dependencies)./bin/console system:setup - At this step I am asked to input some datas:
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这有点奇怪。好消息是,您的安装似乎在起作用,但是由于某种原因,它听起来像您的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:
面临6.5分支机构的问题。
在下面执行命令。
在URL参数上没有落后的斜线
Was facing issue with the 6.5 branch.
Executed below commands.
No trailing slash on URL param