我正在尝试将我的rails应用程序推送到heroku,首先创建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 'git@heroku.com:mycvdemo.git'
当8%写入对象时,我总是收到此错误。
答案 0 :(得分:0)
不确定这是不是问题,但你在这里错过了一步:
你只能将事物推送到已被推送到git的Heroku。提交只是本地的。 This是一个很好的解释(带图片!)