【发布时间】:2010-10-17 03:56:33
【问题描述】:
我正在关注 railstutorial.org 上的指南。我在标题上键入命令时收到此错误。
计数对象:66,完成。 Delta 压缩最多使用 2 个线程。 压缩对象:100% (52/52),完成。 写入对象:100% (66/66),86.47 KiB,完成。 总计 66 个(增量 3),重复使用 0 个(增量 0)
-----> Heroku 接收推送 -----> 检测到 Rails 应用程序 -----> 检测到的 Rails 未设置为提供 static_assets 安装 rails3_serve_static_assets... 完成 -----> 检测到 Gemfile,运行 Bundler 版本 1.0.0 检测到未解决的依赖关系;安装... 您已在开发中修改了 Gemfile,但未检查 生成的快照(Gemfile.lock)到版本控制中
You have added to the Gemfile:
* sqlite3-ruby (= 1.3.7)
You have deleted from the Gemfile:
* sqlite3-ruby (= 1.2.5)
FAILED: http://docs.heroku.com/bundler
! Heroku 推送被拒绝,无法通过 Bundler 安装 gems
错误:钩子/预接收以错误代码 1 退出 至 git@heroku.com:morning-mountain-34.git ! [remote denied] master -> master (pre-receive hook denied) 错误:未能将一些引用推送到 'git@heroku.com:morning-mountain-34.git'
然后当我输入:
$ heroku 打开
我得到一个山区网站:http://morning-mountain-34.heroku.com/ 这不应该是这样的:应该是 first_app
【问题讨论】:
-
您是否重命名了您的应用程序? docs.heroku.com/renaming-apps
-
不,我没有。我什至不知道为什么教程中的 Morning-mountain-34 是 railstutorial.heroku 不明白这是怎么发生的,但之前的任务是: gem install heroku; heroku keys:add then heroku create------------------------------------ 我想我明白了。这只是子域名,但如果我在标题上键入该命令,我如何告诉 heroku 我想要我的 first_app.git 在任何子域上?
标签: ruby-on-rails heroku bundler