首页 > 解决方案 > Slack:有没有办法在开发或生产环境中工作?

问题描述

所以,我最近一直在将 Slack 集成到我的后端,我注意到在开发和/或生产中工作变得非常烦人。

主要是因为似乎没有办法在环境之间切换所以我想知道我是否在这里忽略了一些东西。

现在我刚刚创建MyApp[dev] MyApp镜像了设置,我可以在本地和生产服务器上测试应用程序。这意味着所有斜杠命令、它们的公共 webhook url、交互式消息 webhook url,以及事件的事件 webhook url 以及用于安装的附加 webhook url 等等。

相当耗时,但最重要的是:容易出错。

长话短说:我想知道是否有更简单的方法来管理 Slack 应用程序的开发和生产环境。

标签: slackslack-apislack-commands

解决方案


不,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

我找不到 Jun 提到的“测试版应用程序”的文档,但根据她的描述,这可能是最好的!无论如何,他们推荐的方法是使用单独的 Slack 应用程序进行开发。


推荐阅读