dis*_*ame 7 slack-api slack slack-commands
所以,我最近一直在将 Slack 集成到我的后端中,我注意到在开发和/或生产中工作变得非常烦人。
主要是因为似乎没有办法在环境之间切换,所以我想知道我是否忽略了这里的一些东西。
现在,我刚刚创建MyApp
并[dev] MyApp
镜像了设置,我可以在本地和生产服务器上测试应用程序。这意味着所有斜杠命令、它们的通用 webhook url、交互式消息 webhook url、以及事件的事件 webhook url 以及用于安装的附加 webhook url 等等。
相当耗时,但最重要的是:容易出错。
长话短说:我想知道是否有更简单的方法来管理 Slack 应用程序的开发和生产环境。
不,Slack 应用程序不支持正式的“生产”和“开发”环境。
我今天向 Slack 的支持团队提出了同样的问题,并得到了这样的答复:
Hey Alex :wave:,
Thank you for taking the time to write in about this. That is exactly right,
and you will not be penalized for having both of these apps. Alternatively,
you are also given a beta app that you can use for development once your app
is on the App Directory but I have found some developers confused with how the
updating of settings works so making a separate app is a recommended workaround.
I hope that makes sense and good luck with your app launch!
Jun | Developer Support
Run Code Online (Sandbox Code Playgroud)
我无法找到 Jun 提到的“测试版应用程序”的文档,但根据她的描述,这可能是最好的!无论如何,他们推荐的方法是使用单独的 Slack 应用程序进行开发。
归档时间: |
|
查看次数: |
1750 次 |
最近记录: |