几周前,我在livebytransit.com上成功地将实时应用程序推到了herku的雪松堆栈上,并且我成功地将代码更改推到了最近。从同一工作目录创建临时应用程序后,我无法推送代码更改...请参阅下午--cloud-6227.herokuapp.com。我的想法是首先推动变化到下午云,然后如果一切看起来不错,推到主站点。就目前来看,我无法将更改推送到任一应用程序。无法推送到Cedar Stack上现有的liveku应用程序
这是一些代码,显示了我尝试过的一些事情。我认为有这么多的错误,我最好的选择是创建一个新文件夹,从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
有一件事让我很困惑,那就是为什么起源拼写错误。这让我想知道我是否偶然改变了这一点?任何想法或建议将非常感激。
感谢您的评论尼尔。我打开.git/config并根据您的意见更改了heroku远程控制器,但没有任何更改。我也尝试将我的所有代码复制到一个新目录中,并重新部署到雪松上的新应用程序....但git push heroku master无法正常工作。你有没有遇到过这样的事情?感谢您的链接,我一定会收藏这本书供将来参考。 – tbone 2012-01-11 20:41:24
尼尔,事实证明,你对[email protected]是正确的:livebytransit.git。此外,我的github源主帐户的地址区分大小写,所以必须是LiveByTransit.git。谢谢!汤姆 – tbone 2012-01-17 21:38:43