몇 주 전에 livebytransit.com의 cedar 스택에서 heroku에 라이브 앱을 성공적으로 푸시했는데 최근까지 코드 변경 사항을 성공적으로 푸시했습니다. 동일한 작업 디렉토리에서 스테이징 응용 프로그램을 만든 후 코드 변경을 푸시 할 수 없었습니다 ... afternoon-cloud-6227.herokuapp.com을 참조하십시오. 내 생각은 변경 사항을 먼저 오후 구름으로 밀어 넣은 다음 모든 것이 좋게 보였을 경우 주 사이트로 이동하는 것이 었습니다. 지금 당장은 앱에 변경 사항을 적용 할 수 없습니다.Cedar Stack에서 기존 라이브 heroku 앱으로 푸시 할 수 없습니다.
다음은 내가 시도한 몇 가지 코드입니다. 나는 많은 것들이 잘못되었다고 생각한다. 아마도 가장 좋은 방법은 새로운 폴더를 만들고, github에서 응용 프로그램을 복제하고, heroku에서 새 응용 프로그램으로 재배포하여 기존의 두 응용 프로그램을 재배하는 것이다. 그러나 나는 사용자는 프로세스에서 날아갈 수 있으므로 가능한 경우 기존 디렉토리에있는 항목을 복구하려고합니다.
TBones-MacBook-Pro:livebytransit PG$ git remote -v
afternoon-cloud-6227 [email protected]:afternoon-cloud-6227.herokuapp.git (fetch)
afternoon-cloud-6227 [email protected]:afternoon-cloud-6227.herokuapp.git (push)
heroku [email protected]:livebytransit.herokuapp.git (fetch)
heroku [email protected]:livebytransit.herokuapp.git (push)
orgin [email protected]:tom-brown/LiveByTransit.git (fetch)
orgin [email protected]:tom-brown/LiveByTransit.git (push)
TBones-MacBook-Pro:livebytransit PG$ git add .
TBones-MacBook-Pro:livebytransit PG$ git commit -am"lots of changes that have been pushed to github already via git push orgin master"
# On branch master
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
# (commit or discard the untracked or modified content in submodules)
#
# modified: voting (modified content)
#
no changes added to commit (use "git add" and/or "git commit -a")
TBones-MacBook-Pro:livebytransit PG$ git push afternoon-cloud-6227
! Invalid path.
! Syntax is: [email protected]:<app>.git where <app> is your app's name.
fatal: The remote end hung up unexpectedly
TBones-MacBook-Pro:livebytransit PG$ git push orgin master
Everything up-to-date
TBones-MacBook-Pro:livebytransit PG$ git remote rm afternoon-cloud-6227
TBones-MacBook-Pro:livebytransit PG$ git remote add livebytransit [email protected]:livebytransit.herokuapp.git
TBones-MacBook-Pro:livebytransit PG$ git remote -v
heroku [email protected]:livebytransit.herokuapp.git (fetch)
heroku [email protected]:livebytransit.herokuapp.git (push)
livebytransit [email protected]:livebytransit.herokuapp.git (fetch)
livebytransit [email protected]:livebytransit.herokuapp.git (push)
orgin [email protected]:tom-brown/LiveByTransit.git (fetch)
orgin [email protected]:tom-brown/LiveByTransit.git (push)
TBones-MacBook-Pro:livebytransit PG$ git add .
TBones-MacBook-Pro:livebytransit PG$ git commit -a -m "lots of changes already commited to github via git push orgin master"
# On branch master
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
# (commit or discard the untracked or modified content in submodules)
#
# modified: voting (modified content)
#
no changes added to commit (use "git add" and/or "git commit -a")
TBones-MacBook-Pro:livebytransit PG$ git push orgin master
Everything up-to-date
TBones-MacBook-Pro:livebytransit PG$ git push heroku master
! Invalid path.
! Syntax is: [email protected]:<app>.git where <app> is your app's name.
fatal: The remote end hung up unexpectedly
TBones-MacBook-Pro:livebytransit PG$ git push heroku livebytransit
! Invalid path.
! Syntax is: [email protected]:<app>.git where <app> is your app's name.
fatal: The remote end hung up unexpectedly
TBones-MacBook-Pro:livebytransit PG$ git push heroku [email protected]:livebytransit.herokuapp.git
! Invalid path.
! Syntax is: [email protected]:<app>.git where <app> is your app's name.
fatal: The remote end hung up unexpectedly
TBones-MacBook-Pro:livebytransit PG$ git push heroku:livebytransit.herokuapp.git
ssh: Could not resolve hostname heroku: nodename nor servname provided, or not known
fatal: The remote end hung up unexpectedly
나를 혼란스럽게 만드는 한 가지 이유는 원점의 철자가 틀린 이유입니다. 우연히 내가 어떻게 든 이것을 바꿨는지 궁금하게 생각하니? 어떤 생각이나 충고도 대단히 감사 할 것입니다.
Neil에게 감사드립니다. 나는 .git/config 파일을 열었고 사용자의 의견에 따라 heroku 리모컨을 변경했으나 변경되지 않았습니다. 나는 또한 모든 코드를 새 디렉토리에 복사하고 시더에서 새 응용 프로그램으로 재배포하려했지만 .... git push heroku master는 오류없이 작동하지 않습니다. 이런 식으로 달아 났어? 링크를 보내 주셔서 감사합니다. 나중에 참조 할 수 있도록이 링크를 북마크에 추가하겠습니다. – tbone
Neil, [email protected] : livebytransit.git에 대해 당신이 옳았다는 것이 밝혀졌습니다. 또한 github origin 마스터 계정의 주소는 대소 문자를 구분하므로 LiveByTransit.git이어야합니다. 감사! Tom – tbone