
我正在尝试检查heroku上的git远程:
$ heroku auth:logout
Local credentials cleared.
$ heroku auth:login
Enter your Heroku credentials.
Email: ***@gmail.com
Password (typing will be hidden):
Authentication successful.
$ git remote
heroku
origin
$ git remote show heroku
Username for 'https://git.heroku.com':
Password for 'https://git.heroku.com':
remote: ! WARNING:
remote: ! Do not authenticate with username and password using git.
remote: ! Run `heroku login` to update your credentials, then retry the git command.
fatal: Authentication failed for 'https://git.heroku.com/***-1909.git/'
Run Code Online (Sandbox Code Playgroud)
heroku文档中引用了此错误,位于https://devcenter.heroku.com/articles/git上面的屏幕截图中,但我不确定下一步该怎么做才能解决此问题.
我确实有一个react.js应用程序(create-react-app)我设置了文件,就像官方文档中解释的那样,一切都很顺利,但推送失败了这一特定行
git Push https://heroku :$API_KEY@git.heroku.com/$APP_NAME.git HEAD:master
bitbucket-pipelines.yml 位于根文件夹中:
image: node:6
clone:
depth: full
pipelines:
default:
- step:
script:
- npm install
- npm test
- git push git push https://heroku:$API_KEY@git.heroku.com/$APP_NAME.git HEAD:master
Run Code Online (Sandbox Code Playgroud)
我做错了什么?这里的目标是在 bitbucket 平台上使用 CI,同时还将主提交推送到 heroku 存储库以自动部署。
我收到的错误是:
remote: ! WARNING:
remote: ! Do not authenticate with username and password using git.
remote: ! Run `heroku login` to update your credentials, then retry the git command.
remote: ! See documentation for details: https://devcenter.heroku.com/articles/git#http-git-authentication
fatal: Authentication failed for 'https://heroku
Run Code Online (Sandbox Code Playgroud)