api - Vue-storefront-api问题(首页报错)
问题描述
我已经在https://hoversport.no/上设置了 vue-storefront 。
- 虽然它没有显示标准主页布局,因为有一个错误,最肯定的是 API。
- 我在终端没有输出错误,一切运行正常,没有节点等服务器试图在相同的端口上运行,我得到的一切都是绿色 OK/正在运行。
- 要么是配置、权限中的某些东西,要么是我无法理解的其他东西。
不知道从哪里看,从哪里开始,如何解决这个问题。
预期结果应该是这样的:https ://demo.mage-pwa.io/
任何帮助都非常感谢!
这是 vue-storefront/config 文件 https://github.com/Decntdefalt/vue-storefront-config
这是 vue-storefront-api/config 文件 https://github.com/Decntdefalt/vue-storefront-api-config
解决方案
根据配置,您的节点应用程序(vue storefront api)似乎未在您的 nginx 中正确配置。https://hoversport.no/api/catalog应该返回一个响应,目前它没有。
这里缺少的是在以下位置提到的 nginx 配置: https ://github.com/DivanteLtd/vue-storefront/blob/master/docs/guide/installation/production-setup.md#nginx
如果它被正确指出,您应该导航到您的 vue-storefront-api 文件夹并运行:
node_modules/pm2/bin/pm2 logs
以调查 api 节点应用程序的剩余问题。
推荐阅读
- nginx - 如何为 nginx 提供适当的文件权限以便能够成功连接到上游
- spring-integration - 从 Sftp 过滤并获取远程文件名列表
- java - 谷歌 admob 横幅广告更改 imageView 颜色
- python - 打印散点图熊猫的异常值
- python - 使用多处理将数组添加到全局数组
- c++ - 为什么我在使用 Qt5 时会出现奇怪的崩溃,这取决于我创建应用程序实例的方式?
- wordpress - 升级到 Wordpress 5.7 后,对后期缩略图的主题支持停止工作
- python - 如何将工厂男孩实例转换为 json
- r - 为 S 形残差(正弦波曲线)选择哪种非线性回归
- openid-connect - 如何使遗留身份提供者与联合登录标准兼容?