Невозможно перейти к существующему приложению в режиме реального времени на Cedar Stack - PullRequest
0 голосов
/ 09 января 2012

Несколько недель назад я успешно отправил живое приложение на heroku в стеке кедра на livebytransit.com, и до недавнего времени я успешно продвигал изменения кода. Я не смог нажать изменения кода после создания промежуточного приложения из того же рабочего каталога ... см .day-cloud-6227.herokuapp.com. Я думал о том, чтобы сначала перенести изменения в дневное облако, а затем, если все выглядело хорошо, перейти на основной сайт. В настоящее время я не могу вносить изменения ни в одно из приложений.

Вот код, который показывает некоторые вещи, которые я пробовал. Я думаю, что в этом так много всего плохого, что лучше всего создать новую папку, клонировать приложение из github и заново развернуть новое приложение на heroku и записать два существующих приложения ... но у меня есть несколько пользователи, которые будут потрясены этим процессом, поэтому я хотел бы спасти то, что у меня есть в моем существующем каталоге, если это возможно.

TBones-MacBook-Pro:livebytransit PG$ git remote -v
afternoon-cloud-6227    git@heroku.com:afternoon-cloud-6227.herokuapp.git (fetch)
afternoon-cloud-6227    git@heroku.com:afternoon-cloud-6227.herokuapp.git (push)
heroku  git@heroku.com:livebytransit.herokuapp.git (fetch)
heroku  git@heroku.com:livebytransit.herokuapp.git (push)
orgin   git@github.com:tom-brown/LiveByTransit.git (fetch)
orgin   git@github.com: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: git@heroku.com:<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 git@heroku.com:livebytransit.herokuapp.git
TBones-MacBook-Pro:livebytransit PG$ git remote -v
heroku  git@heroku.com:livebytransit.herokuapp.git (fetch)
heroku  git@heroku.com:livebytransit.herokuapp.git (push)
livebytransit   git@heroku.com:livebytransit.herokuapp.git (fetch)
livebytransit   git@heroku.com:livebytransit.herokuapp.git (push)
orgin   git@github.com:tom-brown/LiveByTransit.git (fetch)
orgin   git@github.com: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: git@heroku.com:<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: git@heroku.com:<app>.git where <app> is your app's name.

fatal: The remote end hung up unexpectedly

TBones-MacBook-Pro:livebytransit PG$ git push heroku git@heroku.com:livebytransit.herokuapp.git

 !  Invalid path.
 !  Syntax is: git@heroku.com:<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 ]

2 голосов
/ 09 января 2012

Звучит так, будто ваш пульт управления герокой скрыт в .git / config.

Учитывая, что ваше приложение живет на livebytransit.herokuapp.com, ваш удаленный герой должен быть:

git@heroku.com:livebytransit.git

Если вы хотите, чтобы ветки тем одного и того же приложения работали в двух отдельных приложениях Heroku, я рекомендую вам прочитать это:

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

0 голосов
/ 27 января 2012

Ответ Нейла действительно сработал для меня. Я проверил .git / config и обнаружил, что каким-то образом там был дополнительный .git, как показано ниже:

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

Я изменил jon-demo-app.git.git на jon-demo-app.git и стал золотым.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...