【问题标题】:Vue-storefront-api problem (Error on homepage)Vue-storefront-api问题(首页报错)
【发布时间】:2018-11-29 04:58:51
【问题描述】:

我已经在https://hoversport.no/上设置了vue-storefront。

  • 虽然它没有显示标准主页布局,因为有一个 错误,最肯定是 API。
  • 我在终端没有输出错误,一切运行正常,没有 节点等服务器绝对尝试在相同的端口上运行 我得到的一切都是绿色 OK/Running。
  • 要么是配置、权限或其他我的东西 无法绕开我的头。

不知道从哪里开始,从哪里开始,如何解决这个问题。

预期结果应该是这样的: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

【问题讨论】:

  • 如果你能提供minimal reproducible example就太好了
  • 您需要向我们展示连接到您的 API 的代码以及运行的任何查询。
  • 我已经编辑了原始帖子并包含了我正在使用的配置文件的存储库。问题是,我在输出中没有收到任何错误,所以我不确定当我看不到它们时要查找哪些错误.. 我知道的唯一错误是主页本身 hoversport.no

标签: api vue.js vue-storefront


【解决方案1】:

根据配置,您的节点应用程序(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 节点应用程序的剩余问题。

【讨论】:

    猜你喜欢
    • 2020-12-03
    • 1970-01-01
    • 1970-01-01
    • 2021-07-31
    • 2017-11-09
    • 2021-05-26
    • 2016-08-10
    • 1970-01-01
    • 2011-09-06
    相关资源
    最近更新 更多