Git:无法部署应用程序:无法找到应用程序名称

时间:2016-12-01 15:49:33

标签: eclipse git heroku repository init

我想从Eclipse部署一个Java应用程序到Heroku。当我想部署应用程序时,构建失败。出现错误消息:

无法部署应用程序:找不到应用程序名称:找不到Git repo。您是否在创建应用之前创建了一个?

在项目文件夹的控制台中,我已经输入了“git init”。在项目的文件夹中没有.git文件夹

感谢您的帮助!

2 个答案:

答案 0 :(得分:0)

您需要按照一系列步骤来部署代码。它包括initaddcommitadd remotepushpull等。

参考simple git tutorialHeroku's documentation for deployment through Git

答案 1 :(得分:0)

如果你在github上托管你的代码,heroku有一个非常简单的集成,请检查this docs

相关问题