我正在尝试使用JS SDK的FB.ui方法打开一个提要对话框,并在用户共享后关闭它.我的问题是feed对话框需要redirect_uri,即使文档说它不必定义,弹出窗口重定向到那里并且不会像回调函数那样关闭.
这是我的代码,附加到提交点击事件:
FB.ui (
{
method: 'feed',
name: 'xxx!',
link: 'link to FB tab',
picture: 'jpg',
caption: 'xxx',
actions: {name:'xxx',link:'url'},
ref: 'xxx',
redirect_uri: 'link to FB tab'
},
function(response) {
self.close();
}
);
Run Code Online (Sandbox Code Playgroud)
如果我不使用redirect_uri,弹出窗口会打开,但它只是说FB应用程序有错误,请再试一次.
我用于部署Angular的CI/CD管道管道已关闭,但我发现在更新容器映像后,Google Cloud Run 不会部署新版本。
我已将 Cloud Build 设置为在更新 GitHub 上的分支时触发构建。这工作正常,我看到我得到了一个以提交哈希命名的新图像。我期望 Cloud Run 触发其服务,获取最新的映像并部署它,但它没有运行。我不确定是否需要更改图像名称,以便它们由于SHA-1哈希值而变得不唯一。
continuous-deployment google-cloud-platform google-cloud-build google-cloud-run
我的 Angular 应用程序在本地运行良好,但我还没有弄清楚如何对 Docker 映像执行相同的操作。在 Docker 之外,UI 在端口 4200 上运行ng serve,API 通过 8080 提供数据node server.js。
我的 Dockerfile 已设置为可以让 Node 服务器在 8080 上运行并可用,但 Angular UI 无法运行。我尝试了多种选择,但现在我有:
FROM node:14.17.3
COPY package*.json ./
EXPOSE 4200 8080
RUN npm install -g @angular/cli
RUN npm install --only=production
COPY . ./
RUN ng serve
CMD ["node", "server.js"]
Run Code Online (Sandbox Code Playgroud)
它失败ng serve并出现错误:The serve command requires to be run in an Angular project, but a project definition could not be found。我的根目录中有一个 angular.json …