简体   繁体   English

在Eclipse中从模板创建Heroku应用程序?

[英]Create Heroku App from Template in Eclipse?

I want to create a new Heroku App from Template in Spring (Version: 3.3.0.RELEASE) tool. 我想从Spring中的Template(版本:3.3.0.RELEASE)工具创建一个新的Heroku应用程序。 I have loogged succesfully and got proper ssh key loaded in Spring and in herocu web account. 我成功地搞定了,并在Spring和herocu web帐户中加载了正确的ssh密钥。 Also I have less that 5 projects (not reached the limit), every time i try to start new project and set "Spring MVC & Tomcat application" and click Finish it gives me an error: 此外,我少了5个项目(没有达到限制),每次我尝试启动新项目并设置“Spring MVC和Tomcat应用程序”并单击完成它会给我一个错误:

We have encountered a problem creating your application: shielded-retreat-3014. This could be due to the Eclipse SSH key is not matching the SSH key(s) that is associated with your Heroku account. To fix this error, you can:

- Associate your SSH key to your Heroku account by going to "Preferences"
    OR    
- If the SSH Key is correct, restart Eclipse.
git@heroku.com:shielded-retreat-3014.git: reject HostKey: heroku.com

EDIT: 编辑:

Just after errror the application is getting created on heroku web account. 在错误之后,应用程序将在heroku网络帐户上创建。

The same error occurs even I restart Eclipse and try to Import existing project (yes,it see it) "autodetect: Maven" and "General project" does not work. 即使我重新启动Eclipse并尝试导入现有项目(是的,它看到它)“autodetect:Maven”和“常规项目”不起作用,也会出现同样的错误。

The answer is quite simple although it took me hours to figure it out. 答案很简单,虽然花了我几个小时来搞清楚。 The Heroku site is not being added to your known hosts. Heroku站点未添加到您的已知主机。

In Eclipse, go to Window -> Show view -> Other... -> Git -> Git repositories. 在Eclipse中,转到Window - > Show view - > Other ... - > Git - > Git repositories。 From there, clone the repository. 从那里,克隆存储库。 Once you clone it, import it from the file menu. 克隆后,从文件菜单中导入它。 Do this since when you clone the repository, it does not add it to the explorer view. 这样做是因为克隆存储库时,它不会将其添加到资源管理器视图中。 Now you should have the Git repository and the explorer view. 现在您应该拥有Git存储库和资源管理器视图。

I think I had this same problem and solved it. 我想我有同样的问题并解决了它。 I believe the issue is due to not having a known hosts entry for heroku.com. 我认为问题是由于没有heroku.com的已知主机条目。 I am not sure what is the best way to get the needed finger print, but I solved my problem when i tried to just clone the repo from heroku using Egit. 我不确定什么是获得所需指纹的最佳方法,但当我尝试使用Egit克隆来自heroku的repo时,我解决了我的问题。 I got a pop up informing me that heroku.com was not a known host and allowed me to accept the key. 我有一个弹出窗口通知我heroku.com不是一个已知的主机,并允许我接受密钥。 If I recall correctly you normally get this key the first time you try to ssh into a host. 如果我没记错的话,你第一次尝试ssh到主机时通常会得到这个密钥。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM