google-cloud-platform - 如何在 dialogflow-intégrations 中进行多重集成(twitter + skype)
问题描述
我使用https://github.com/GoogleCloudPlatform/dialogflow-integrations
我设法让 twitter 然后 Skype 工作,但是当我改变 ENV INTEGRATION 时,突然之间我们如何让两者都工作,我不明白。
解决方案
我在dockerfile中试过了
# Use the official Node.js 10 image.
# https://hub.docker.com/_/node
FROM node:10
# Create and change to the app directory.
WORKDIR /usr/src/app
# Set this environmental variable to the integration you want to use
ENV INTEGRATION=twitter
ENV INTEGRATION2=skype
# Copy application dependency manifests to the container image.
# A wildcard is used to ensure both package.json AND package-lock.json are copied.
# Copying this separately prevents re-running npm install on every code change.
COPY ${INTEGRATION}/package*.json ./
COPY ${INTEGRATION2}/package*.json ./
# Install production dependencies.
RUN npm install --only=production
# Copy local code to the container image.
COPY . .
# Run the web service on container startup.
WORKDIR ${INTEGRATION}
CMD [ "npm", "start" ]
WORKDIR ${INTEGRATION2}
CMD [ "npm", "start" ]
这在安装过程中没有产生错误,但是在部署时这产生了一个错误,比如端口无法打开所以我尝试更改 Skype 节点的端口全部重做安装并产生相同的错误我也尝试过复制目录并安装skype 不幸的是twitter没有工作,服务器地址保持不变,这就是为什么我打开这个话题,因为我正在晒它!
有关于此的注释,但我不明白该怎么做。 https://github.com/GoogleCloudPlatform/dialogflow-integrations#multiple-integrations 如果你理解得更好
推荐阅读
- apache-flink - Flink 中的检查点不适用于 CoFlatMapFunction
- spring - 在 Spring Security 中添加添加请求标头的自定义过滤器
- python - you cannot alter to or from M2M fields, or add or remove through= on M2M fields
- php - Google Ads API - Campaign Target CPA
- r - How do I add double quotes to a query I'm sending from R to Redshift
- c# - 在 MVC 中实现点击动作
- elasticsearch - Coordinator节点加入elasticsearch集群失败
- reactjs - 如何将动态 id 和动态切换器传递给 Reactstrap 的 UncontrolledCollapse 标签?
- javascript - 重新关注 Vue SPA 页面
- node.js - Joi 嵌套的“when”条件在模式定义中失败,并出现“ERR_ASSERTION”错误