通过新API重新启动heroku

通过新API重新启动heroku

本文介绍了通过新API重新启动heroku的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有点困惑,因为heroku API曾经有一种方法可以重新启动应用程序的进程.现在该API似乎已被弃用,所有链接都指向 https://devcenter.heroku. com/articles/platform-api-reference ,在这里我找不到有关重启的任何信息(甚至单词restart本身).

I'm a bit confused, as there used to be a method in heroku API to restart processes of an app.Now this API seems to be deprecated and all links are leading to https://devcenter.heroku.com/articles/platform-api-reference where I cannot find any information about restart (even the word restart itself).

有人可以阐明它吗?我相信,除了显示日志外,这也是开发人员最重要的API命令之一,因为您可以通过heroku webui来完成大多数其他任务.

Can someone shed some light on it? This is, I believe, along with showing logs, one of the most important API commands for a dev, as you can do most of other tasks via heroku webui.

推荐答案

您必须使用Dyno删除: https://devcenter.heroku.com/articles/platform-api-reference#dyno-delete

You have to use Dyno delete: https://devcenter.heroku.com/articles/platform-api-reference#dyno-delete

如果删除一次测功,它将不会重新启动,如果在编队中定义,它将重新启动.

If you delete a one-off dyno, it won't be restarted, if it's defined in the formation, it will be restarted.

我们将改进文档,感谢您指出此遗漏.

We'll improve the docs, thanks for pointing out this omission.

这篇关于通过新API重新启动heroku的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 05:50