python – 使用“git push heroku master”时出错

我正在使用以下给定的命令将数据推送到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

相关文章

Python中的函数(二) 在上一篇文章中提到了Python中函数的定...
Python中的字符串 可能大多数人在学习C语言的时候,最先接触...
Python 面向对象编程(一) 虽然Python是解释性语言,但是它...
Python面向对象编程(二) 在前面一篇文章中谈到了类的基本定...
Python中的函数(一) 接触过C语言的朋友对函数这个词肯定非...
在windows下如何快速搭建web.py开发框架 用Python进行web开发...