我正在ruby.railstutorial.org上工作,我有很多讓我的first_app從git推到heroku的麻煩。我嘗試了下面列出的解決方案,但不斷收回相同的錯誤消息。不能git推到heroku master ruby.railstutorial.org
解決方案我曾嘗試: git push heroku master gives error ssh: connect to host heroku.com port 22: Connection refused git push heroku master gives error ssh: connect to host heroku.com port 22: Connection refused
I have tried precompiling as:
$ rake assets:precompile
$ git add .
$ git commit -m "Add precompiled assets for Heroku"
,並得到一個新的SSH密鑰。我似乎無法得到任何工作。這是我得到的:
Coreys-MacBook-Pro:first_app coreydavis$ heroku create
Creating radiant-oasis-3729... done, stack is cedar
http://radiant-oasis-3729.herokuapp.com/ | [email protected]:radiant-oasis-3729.git
Coreys-MacBook-Pro:first_app coreydavis$ git push heroku master
ssh: connect to host heroku.com port 22: Connection refused
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我知道存在的存儲庫,我有訪問,我無法弄清楚我在這裏失蹤。 任何幫助都會很棒,我對此非常非常陌生,並且完全不瞭解即使通過閱讀和谷歌搜索發生了什麼問題。非常感謝。
你有沒有重新命名應用程序或創建多個heroku應用程序?您可能試圖將主人推送到不再存在的應用程序。查看https://devcenter.heroku。com/articles/renaming-apps#manually-updating-a-git-remote and http://stackoverflow.com/questions/6226846/how-to-change-a-git-remote-on-heroku刪除orgin – ChrisBarthol
謝謝克里斯,我發現我確實有多個應用程序,所以我刪除了它們並嘗試創建一個新應用程序,但$ git remote -v仍在報告原始應用程序的名稱。有沒有一種方法可以清潔並開始新鮮? – user3353784
我已將它添加爲答案 – ChrisBarthol