簡體   English   中英

推送到Heroku錯誤

[英]Pushing to Heroku Error

我知道這是很常見的情況,但是我已經搜索過google / stackoverflow,但都找不到合適的解決方案。 我有這個RoR應用程式,正嘗試推送至heroku。 首先,我創建了gentle-savannah-1528 (dyno?),我正在嘗試git push heroku master但是隨后出現此錯誤:

emmanuels-imac:kal siaW$ git push heroku master
fatal: 'heroku' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
emmanuels-imac:kal siaW$ 

我嘗試了許多解決方案,但沒有任何效果。 有人可以幫我節省一些時間。 我不能再花時間試圖找出如何推向Heroku了。

我已經做了:

emmanuels-imac:kal siaW$ heroku git:remote -a gentle-savannah-1528
emmanuels-imac:kal siaW$ git push heroku master
fatal: 'heroku' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
emmanuels-imac:kal siaW$ 

聽起來好像您還沒有為Heroku創建remote

按照以下說明進行操作 ,確保已完成:

heroku git:remote -a gentle-savannah-1528

然后嘗試:

git push heroku master

該錯誤顯示“請確保您具有正確的訪問權限”。 您可能需要將公共密鑰上傳到Heroku。 只需在終端中輸入以下內容:

heroku keys:add ~/.ssh/id_rsa.pub

Heroku網站上的此頁面介紹了如果您沒有創建一個頁面的方法

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM