缺少heroku worker dyno

时间:2018-01-21 11:38:12

标签: c# heroku procfile discord.net dyno

我最近尝试使用Heroku体验c#(控制台应用程序)Discord.Net(API)项目。

我使用Heroku CI部署了整个项目,然后添加了Procfile和package.json         $ git commit 并且它回答“没有添加到提交但未跟踪的文件存在。”

然后我去了网站,发现我在我的个人资料中声明的我的工人Dyno遗失了。

有人可以帮我弄清楚为什么Dyno会丢失,虽然我宣布了它?

Procfile:

    worker: node Program.cs //The file containing the script

包装:

    {
        "name": "Test",
        "description": "Test",
        "version": "0.0.0",
        "main": "Program.cs",
        "scripts": {
            "start": "node Program.cs"
        },
        "dependencies": {
            "discord.net": "1.0.2"
        }
    }

1 个答案:

答案 0 :(得分:0)

procfile必须包含任何扩展......否则调试器会错过它。 与heroku提供的explenation不同... 删除所有扩展后,它被识别为dyno。