小编And*_*rea的帖子

如何设置git远程heroku?

当我尝试使用命令时heroku git:remote -a sleepy-inlet-36834 ,我进入set git remote heroku to https://git.heroku.com/sleepy-inlet-36834.git了终端。然后我尝试像这样设置 git remote heroku。

heroku git:remote -a https://git.heroku.com/sleepy-inlet-36834.git.
Run Code Online (Sandbox Code Playgroud)

那一次我收到了类似这样的错误消息。

 ?    The requested API endpoint was not found. Are you using the right HTTP
 ?    verb (i.e. `GET` vs. `POST`), and did you specify your intended version
 ?    with the `Accept` header?
Run Code Online (Sandbox Code Playgroud)

我该如何解决这个问题?

github heroku

5
推荐指数
1
解决办法
3522
查看次数

使用"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
Run Code Online (Sandbox Code Playgroud)

当我使用时,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.
Run Code Online (Sandbox Code Playgroud)

然后我发出heroku open命令,我得到了一个错误

?    ENOTFOUND: getaddrinfo ENOTFOUND api.heroku.com api.heroku.com:443
Run Code Online (Sandbox Code Playgroud)

当我得到上述错误时,我试图通过使用更改终端上的命令,heroku git:clone -a bigpro并在进行了更改后,我给了git push heroku master,我收到了一个错误

 remote: ! …
Run Code Online (Sandbox Code Playgroud)

python github heroku

5
推荐指数
1
解决办法
857
查看次数

标签 统计

github ×2

heroku ×2

python ×1