我試圖把我的Rails應用到Heroku的,首先創建Heroku的帳戶中,然後在命令提示符下無法部署應用程序,以Heroku的
- 的git的init
- git的補充。
- git的承諾-m 「初始化」
- Heroku的登錄,然後按SSH
- 的Heroku創建mycvdemo
- 混帳推Heroku的主
C:\Sites\mycv>git push heroku master
Counting objects: 253, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (228/228), done.
Writing objects: 8% (21/253), 208.00 KiB | 3 KiB/s
但我收到這個錯誤:
C:\Sites\mycv>git push heroku master
Counting objects: 253, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (228/228), done.
Write failed: The connection was abortediB | 3 KiB/s
fatal: sha1 file '<stdout>' write error: Invalid argument
error: failed to push some refs to '[email protected]:mycvdemo.git'
8%寫入對象時我總是收到這個錯誤。
請確保''[email protected]:mycvdemo.git''是正確的位置。我對Heroku一無所知,但對於github,你通常必須在那裏輸入用戶名。就像''[email protected]:username/mycvdemo.git'' – sircapsalot
你有沒有做過'git remote add heroku [email protected]:mycvdemo.git'? –
@RajarshiDas git remote當我運行'heroku創建'時自動添加 – GeekToL