小部件的ApostropheCMS部署问题 [英] ApostropheCMS Deployment Issue With Widget

查看:94
本文介绍了小部件的ApostropheCMS部署问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是在Apostrophe工作的相对入门的人。首先,我想说它的生态系统非常棒,到目前为止,我很喜欢这种体验。但是,我遇到了一个令人困惑的问题。



我一直在使用它来为客户建立网站,并且遇到了一个非常麻烦的问题。奇怪的问题。我安装了一个通过npm找到的instagram窗口小部件(



以及我服务器上的以下内容



看起来好像未生成该小部件,并且在控制台中找不到任何错误。请注意,我可以添加和删除小部件,但无法在服务器上生成任何内容(但可以在本地主机上生成)。

解决方案

因此,正如评论中所述,我认为问题是由于instagram的旧版api需要网站授权。但是,随着Facebook推出新的Instagam Basic Display API,无论如何,该应用都会停止工作,而本月底该传统将被淘汰。因此,我找到了此博客帖子,并发现它很容易适应Apostrophe模块。它需要注册Zapier,但基本帐户是免费的,它是一个非常有趣的工具。这解决了我的需求


I am a relative beginner to working in Apostrophe. I'd like to start off by saying its a pretty great ecosystem and I've enjoyed the experience so far. However, I've run into an issue thats a bit confusing.

I've been using it to build a site for a client and I've run into a very odd issue. I have installed an instagram widget that I found via npm (https://www.npmjs.com/package/@kwsites/cms-instagram-widgets) and used it on my local host with relatively no issues, it worked and I moved on with my life.

However now I'm trying to deploy the site and the Instagram widget is not showing up in the browser when viewing on the server. Again the widget shows up perfectly fine in the browser when viewing off my local host which would indicate it did not install correctly on the server but after following all of the post install steps on the linked npm package, I am completely unsure of what to try next. I have confirmed that the @kwsites package folder is in public/modules/ directory

Any help/tips from any of the Apostrophe experts out there would be appreciated.

I am using stagecoach for deployment (again, a great product) and mechanic to manage nginx. I don't know if any of this matters but the widget is making some API calls to Instagram, don't know if they would be affected by either of those tools.

EDIT: Inspection in safari yielded the following from my local host

And the following from my server

It just looks like the widget is not being generated and I cannot find any errors in the console. Note I can add and remove a widget, I just can't get any content to generate on the server (but can on local host).

解决方案

So as noted in the comments, I believe the issue was due to instagram's legacy api requiring site authorization. However with Facebook pushing the new Instagam Basic Display API, the legacy is going to be killed at the end of this month anyway/apps will stop working. So I found this blog post and found it easily adaptable to an Apostrophe module. It requires signing up for Zapier but a basic account is free and its a really interesting tool. This solved my needs

这篇关于小部件的ApostropheCMS部署问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆