【问题标题】:Trouble re(deploying) to heroku麻烦重新(部署)到heroku
【发布时间】:2012-09-11 08:04:33
【问题描述】:

我在重新部署 Hartls 书中的示例应用时遇到了问题:

 !  No such app as murmuring-beyond-6630.

然后我登录 Heroku,删除了应用程序并创建了另一个...

fatal: The remote end hung up unexpectedly
yuliya@ubuntu:~/rails_projects/sample_app$ heroku create

Creating cryptic-plains-9409... done, stack is cedar
http://cryptic-plains-9409.herokuapp.com/ | git@heroku.com:cryptic-plains-9409.git

yuliya@ubuntu:~/rails_projects/sample_app$ heroku keys:add
Found existing public key: /home/yuliya/.ssh/yuliya.pub
Uploading SSH public key /home/yuliya/.ssh/yuliya.pub... done

yuliya@ubuntu:~/rails_projects/sample_app$ git push heroku master

 !  No such app as murmuring-beyond-6630.

仍然引用了以前的应用程序,因此我使用 git rm heroku 命令将其删除。然后我运行 heroku create。然后尝试再次推送应用...

yuliya@ubuntu:~/rails_projects/sample_app$ git remote add heroku git@heroku.com:cryptic-plains-9409
yuliya@ubuntu:~/rails_projects/sample_app$ git push heroku master

 !  Invalid path.
 !  Syntax is: git@heroku.com:<app>.git where <app> is your app's name.

我完全被困住了,如果能在这里得到任何帮助,我将不胜感激。我是新手,感谢您的宝贵时间!

【问题讨论】:

  • 你做了 git remote rm heroku 吗?

标签: ruby-on-rails heroku github


【解决方案1】:

我相信您遗漏了 .git,这是错误所抱怨的。

试试这个,

git remote set-url heroku git@heroku.com:cryptic-plains-9409.git
git push heroku master

引用了这个问题: How does "git push heroku master" know where to push to and how to push to a different repo?

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-06-11
    • 2013-02-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-18
    • 2022-10-18
    • 1970-01-01
    相关资源
    最近更新 更多