我正在使用以下给定的命令将数据推送到heroku应用程序.
git clone https://git.heroku.com/bigpro.git
cd bigpro
git add .
git commit . -m "my test on commit"
git push heroku master
当我使用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.
然后我给了heroku open命令,我收到了一个错误
▸ ENOTFOUND: getaddrinfo ENOTFOUND api.heroku.com api.heroku.com:443
当我得到上述错误时,我尝试使用heroku git:clone -a bigpro更改终端上的命令,并在进行了更改后,我给了git push heroku master,我收到了一个错误
remote: ! Push rejected to bigpro. remote: To git.heroku.com/bigpro.git !
[remote rejected] master -> master (pre-receive hook declined) error: Failed to push some refs to 'git.heroku.com/bigpro.git';
最佳答案
首先,安装heroku toolbelt,然后键入heroku登录以正确设置您的帐户.
接下来,输入heroku git:clone -a myapp其中myapp是Heroku中应用程序的名称.这将拉出存储库并为您正确设置遥控器.
接下来,像往常一样进行更改.
然后你可以做git push heroku master