首页 文章

没有得到“Git远程heroku添加”并得到错误:“致命:远程端意外挂断”推送到heroku master

提问于
浏览
1

我是Heroku和Ruby on Rails的新手 . 当我运行“heroku create”时,我没有得到“Git remote heroku” . 此外,当我尝试“git push heroku master”时,我感到“致命:远程端意外挂断” . 在像Stackflow这样的网站上有类似的情况,但有其他错误消息 . 我只是“致命:远程端意外挂断” . 我也已经编辑了gem文件 . 我注意到它没有加载我正在尝试安装的“first_app”,而是安装了http://murmuring-ravine-4822.herokuapp.com | git@heroku.com:潺潺,峡谷,4822.git . 请帮助,Alex

3 回答

  • -1

    摘自Quora(2018年8月为我工作):

    Vinayak Sinha说:“您的heroku应用程序有一个git存储库,您可以在应用程序设置中找到它 .

    在你的本地git中,添加那个git存储库的远程,然后你可以获取并推送:

    git remote add heroku (<=this is the remote name) remote_url"
    
  • 0

    尝试创建SSH密钥并上传到Heroku .

    https://devcenter.heroku.com/articles/keys

  • 0

    使用以下命令将应用程序添加到Heroku git远程存储库 .

    heroku git:remote -a your-app-name
    

    然后将应用程序推送到Heroku主存储库 .

    有用的链接:Creating a Heroku remote .

相关问题