用Eclipse将现有的备件部署到heroku [英] Deploy existing repo to heroku with Eclipse

查看:169
本文介绍了用Eclipse将现有的备件部署到heroku的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个Web应用程序上工作,我想部署到heroku。我正在使用Eclipse与eGit,所以我的项目已经管理与本地和远程在github上。我知道Heroku在Eclipse上有一个插件,我阅读了该文档,但是没有找到如何创建并将现有的repo推送到Heroku?



谢谢! / p>

解决方案

如果没有eclipse,您只需添加一个带有Heroku应用程序的Git URL的遥控器。例如,如果应用程序是tubby-rabbit-9876,那么在命令行上:

  git添加远程heroku git @ heroku.com:tubby-rabbit-9876.git 

但是,在Eclipse中添加一个远程,那么。



UPDATE0



在Eclipse中,添加一个远程使用:
首选项>团队> Git>配置>资源库设置>添加条目...


I work on a web application I would like to deploy to heroku. I'm using Eclipse with eGit so my project is already managed with Gig locally and remotly on github. I know that there is a plugin for Heroku on Eclipse, I read the doc, but did not find how to create and push an existing repo to Heroku ?

Thanks !

解决方案

Without eclipse, you just add a remote with the Git URL for the Heroku app. For example, if the app is 'tubby-rabbit-9876' then on the command line:

git add remote heroku git@heroku.com:tubby-rabbit-9876.git

However one adds a remote within Eclipse, do that.

UPDATE0

Within Eclipse, add a remote using: "Preferences > Team > Git > Configuration > Repository Settings > Add Entry..."

这篇关于用Eclipse将现有的备件部署到heroku的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆