简体   繁体   English

git push heroku主

[英]git push heroku master

I ran into a problem in the heroku part, and got stuck here. 我在heroku部分遇到了问题,被卡在这里。 The following were the command I input and the result it came out.I installed ruby on rails with the railsinstaller. 以下是我输入的命令及其执行的结果。我使用railsinstaller将ruby安装在rails上。

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'

There is a dependency conflict for a ' railties ' gem. railties ” gem存在依赖冲突。 It's trying to load different versions of a same gem. 它正在尝试加载同一gem的不同版本。

If you have specified ' railties ' gem in you Gemfile, try removing it. 如果您在Gemfile中指定了“ railties ” gem,请尝试将其删除。 Its already included when you specify the ' rails ' gem. 当您指定' rails'gem时,它已经包含在内。

And also, this SO question looks similar to your problem bundle install problem 而且,这个SO问题看起来类似于您的问题捆绑包安装问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM