GitLab 애플리케이션을 Heroku에 배포하려고했지만 실행하려고 할 때이 오류가 계속 발생합니다. heroku login -i
Run `heroku login` to update your credentials, then retry the git command.
나는 이것을 위해 웹에서 솔루션을 살펴 보았지만 아무도 도움이되지 않는 것 같습니다. 내가이 일을 잘못하고 있습니까?
내 YML 파일입니다.
before_script:
- echo "Running job..."
build_job_1:
script:
- heroku login -i
- blank
- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX # Account token
- git remote add heroku https://heroku:[email protected]/redditchatbot.git
- git push heroku HEAD:master
도와 주셔서 감사합니다!
편집 : 아래에 전체 로그를 포함했습니다.
Running with gitlab-runner 11.9.0-rc2 (227934c0)
on docker-auto-scale 0277ea0f
Using Docker executor with image ruby:2.5 ...
Pulling docker image ruby:2.5 ...
Using docker image sha256:e86557c9a8ab97ec7e9ba705f3e3411428b50d19d38643a0f52cb49faf735d3d for ruby:2.5 ...
Running on runner-0277ea0f-project-11711672-concurrent-0 via runner-0277ea0f-srm-1554580242-7d379f26...
Initialized empty Git repository in /builds/WillWam/reddump/.git/
Fetching changes...
Created fresh repository.
From https://gitlab.com/WillWam/reddump
* [new branch] master -> origin/master
Checking out f2d6762d as master...
Skipping Git submodules setup
$ echo "Running job..."
Running job...
$ git remote add heroku https://heroku:[email protected]/redditchatbot.git
$ git push heroku HEAD:master
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:[email protected]/redditchatbot.git/'
ERROR: Job failed: exit code 1
git을 사용하여 사용자 이름과 비밀번호로 인증하지 마십시오.
즉, URL에 heroku : XXXXX를 사용하지 마십시오. heroku 로그인은 자격 증명을 캐시해야합니다. 이는 URL에 해당 자격 증명이 필요하지 않음을 의미합니다.
문제의 지속되면, 다음에 솔루션 중 하나가 '확인 ' git push heroku master
'아직 인증을 요구하고있다 "
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다