2012-01-08 5 views
0

몇 주 전에 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 

나를 혼란스럽게 만드는 한 가지 이유는 원점의 철자가 틀린 이유입니다. 우연히 내가 어떻게 든 이것을 바꿨는지 궁금하게 생각하니? 어떤 생각이나 충고도 대단히 감사 할 것입니다.

답변

2

heroku 리모컨이 .git/config에서 borked처럼 들리는군요.

응용 프로그램이 livebytransit.herokuapp.com에 살고 있음을 감안할 때, 당신에게 Heroku 리모컨이 있어야한다 :

[email protected]:livebytransit.git 

두 개의 별도의 Heroku가 응용 프로그램에서 실행되는 동일한 응용 프로그램의 주제 지점을 가지고 찾고 있다면 I 당신이이 글을 읽을 권장합니다

http://neilmiddleton.com/deploying-topic-branches-to-heroku/

+0

Neil에게 감사드립니다. 나는 .git/config 파일을 열었고 사용자의 의견에 따라 heroku 리모컨을 변경했으나 변경되지 않았습니다. 나는 또한 모든 코드를 새 디렉토리에 복사하고 시더에서 새 응용 프로그램으로 재배포하려했지만 .... git push heroku master는 오류없이 작동하지 않습니다. 이런 식으로 달아 났어? 링크를 보내 주셔서 감사합니다. 나중에 참조 할 수 있도록이 링크를 북마크에 추가하겠습니다. – tbone

+0

Neil, [email protected] : livebytransit.git에 대해 당신이 옳았다는 것이 밝혀졌습니다. 또한 github origin 마스터 계정의 주소는 대소 문자를 구분하므로 LiveByTransit.git이어야합니다. 감사! Tom – tbone

0

닐의 대답은 실제로 날 위해 일했습니다. 다음과 같이 내가 .git/설정을 확인하고 어떻게 든, 거기에 추가 .git 있다는 것을 발견

[remote "heroku"] 
url = [email protected]:jon-demo-app.git.git 
fetch = +refs/heads/*:refs/remotes/heroku/* 

내가 존 - 데모 app.git에 존-데모 app.git.git을 변경하고 황금이었다.

+0

작동되었지만 URL은 ".git.git"또는 ".git"로 끝납니다? 고마워 – MegaTux

관련 문제