【问题标题】:git push heroku mastergit push heroku 大师
【发布时间】:2012-06-11 23:50:20
【问题描述】:

我在 heroku 部分遇到了问题,卡在这里。以下是我输入的命令和结果。我用railsinstaller在rails上安装了ruby。

C:\Sites\rails_projects\first_app>git push heroku master
Counting objects: 64, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (51/51), done.
Writing objects: 100% (64/64), 26.12 KiB, done.
Total 64 (delta 3), reused 0 (delta 0)

-----> Heroku receiving push
-----> Ruby/Rails app detected
-----> Installing dependencies using Bundler version 1.2.0.pre
       Running: bundle install --without development:test --path vendor/bundle -
-binstubs bin/
       Fetching gem metadata from https://rubygems.org/.........
       Bundler could not find compatible versions for gem "railties":
       In Gemfile:
       rails (= 3.2.1) ruby depends on
       railties (= 3.2.1) ruby
       jquery-rails (= 2.0.0) ruby depends on
       railties (3.2.5)

 !
 !     Failed to install gems via Bundler.
 !
 !     Heroku push rejected, failed to compile Ruby/rails app

To git@heroku.com:empty-fire-5502.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:empty-fire-5502.git'

【问题讨论】:

  • 你能附加你的 Gemfile 吗?看来您在rails版本之间存在冲突。你有一些东西需要rails 2.3.1,然后是railties 3.2.5。这个错误是说你必须从本质上选择一个。

标签: ruby-on-rails heroku bundler


【解决方案1】:

'railties' gem 存在依赖冲突。它试图加载同一个 gem 的不同版本。

如果您在 Gemfile 中指定了“railties”gem,请尝试将其删除。当您指定 'rails' gem 时,它已经包含在内。

此外,这个 SO 问题看起来与您的问题 bundle install problem

相似

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-05-23
    • 2013-06-11
    • 1970-01-01
    • 2021-05-19
    • 2013-03-10
    • 2012-02-28
    相关资源
    最近更新 更多