i'm having a problem while pushing my Rails 4 project to GIT:
johann#johann-R430-P430-R480:~/projects/spread$ git push heroku master
Fetching repository, done.
Counting objects: 133, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (90/90), done.
Writing objects: 100% (101/101), 266.75 KiB | 175 KiB/s, done.
Total 101 (delta 25), reused 0 (delta 0)
-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.0.0
-----> Installing dependencies using 1.6.3
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
Fetching gem metadata from https://rubygems.org/........
Fetching additional metadata from https://rubygems.org/..
Could not find tomz-libsvm-ruby-swig-0.3.3 in any of the sources
Bundler Output: Fetching gem metadata from https://rubygems.org/........
Fetching additional metadata from https://rubygems.org/..
Could not find tomz-libsvm-ruby-swig-0.3.3 in any of the sources
!
! Failed to install gems via Bundler.
!
! Push rejected, failed to compile Ruby app
The app works perfectly localhost, including the tomz-libsvm-ruby-swig-0.3.3
What could be wrong? :[
Thanks in advance!
Modify your Gemfile to add an alternative source...
So instead of...
source 'https://rubygems.org'
you should have...
source 'https://rubygems.org'
source 'http://gems.github.com'
And Heroku should then be able to find the gem.
Related
rakesh#rakesh:~/rails/sapwii$ git push heroku master
Fetching repository, done.
Counting objects: 29, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (19/19), done.
Writing objects: 100% (19/19), 58.09 KiB, done.
Total 19 (delta 15), reused 0 (delta 0)
-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.0.0
-----> Installing dependencies using 1.6.3
Ruby version change detected. Clearing bundler cache.
Old: ruby 2.0.0p481 (2014-05-08 revision 45883) [x86_64-linux]
New: ruby 2.0.0p576 (2014-09-19 revision 47628) [x86_64-linux]
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
Fetching gem metadata from https://rubygems.org/........
Could not find activemerchant-1.43.2 in any of the sources
Bundler Output: Fetching gem metadata from https://rubygems.org/........
Could not find activemerchant-1.43.2 in any of the sources
!
! Failed to install gems via Bundler.
!
! Push rejected, failed to compile Ruby app
To git#heroku.com:sapwii.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git#heroku.com:sapwii.git'
I tried changing the SSH Keys and on heroku, getting this error only when pushing my core repository is fine to commit and clone
From the error above, the error is caused by the active merchant version. If you look at the list of available versions for active merchant, you'll see that version 1.43.2 is not there. So either you upgrade or downgrade the version. Check out your Gemfile and make sure that the version activemerchant is locked to exists.
If you didn't lock the activemerchant version in your Gemfile, just run bundle update activemerchant and that will fix your issue.
I'm trying to do a deploy on heroku and freezes on the last step,Fetching http://github.com/rails/prototype_legacy_helper.git
-----> Removing .DS_Store files
-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.0.0
-----> Installing dependencies using 1.5.2
New app detected loading default bundler cache
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
Fetching gem metadata from https://rubygems.org/.......
Fetching additional metadata from https://rubygems.org/..
Fetching http://github.com/rails/prototype_legacy_helper.git
Install the gem as a plugin (only if Rails version less than 4.0):
$ rails plugin install git://github.com/rails/prototype_legacy_helper.git
prototype_legacy helper is no longer maintained.
I am building a new website on Rails and was able to successfully install the new Foundation 5 gem locally. When I pushed it to Heroku I have been getting the following message:
-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.0.0
-----> Installing dependencies using Bundler version 1.3.2
New app detected loading default bundler cache
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin --deployment
Fetching gem metadata from https://rubygems.org/.......
Fetching gem metadata from https://rubygems.org/..
Could not find foundation-rails-5.0.0 in any of the sources
Bundler Output: Fetching gem metadata from https://rubygems.org/.......
Fetching gem metadata from https://rubygems.org/..
Could not find foundation-rails-5.0.0 in any of the sources
!
! Failed to install gems via Bundler.
!
! Push rejected, failed to compile Ruby app
Any ideas where I should go from here? Is there something I need to do on my end or is this on Heroku's end?
The first few versions of the gem were yanked.
Make sure your Gemfile points to a version 5.0.1.0 or greater.
I've had the same issue, and it's also been noted on Foundation's forum. The foundation-rails gem is pretty new (I just now updated to 5.0.2) and it still tanks. Probably just a matter of time until Heroku/Zurb work out the kinks.
I've deploying our app with rails 3.2.13 and ruby 2.0.0p0 without problems in heroku. However, today suddenly I couldn't deploy it. This is the log, it seems the only difference in our project is the version of ruby 2.0.0, which is trying to be installed:
Counting objects: 42, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (24/24), done.
Writing objects: 100% (25/25), 3.17 KiB, done.
Total 25 (delta 19), reused 0 (delta 0)
-----> Ruby/Rails app detected
-----> Using Ruby version: ruby-2.0.0
-----> Installing dependencies using Bundler version 1.3.2
Ruby version change detected. Clearing bundler cache.
Old: ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux]
New: ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-linux]
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin --deployment
Fetching gem metadata from https://rubygems.org/........
Fetching gem metadata from https://rubygems.org/..
Could not find money-rails-0.8.0 in any of the sources
!
! Failed to install gems via Bundler.
!
! Heroku push rejected, failed to compile Ruby/rails app
It seems that it cannot find the money-rails gem (version 0.8.0), but in localhost is working perfectly, and also until yesterday in heroku. I think it's has to be with the new ruby version as it's the only visible change regarding the gems...
Anyone with the same problem?
Thanks in advance!!
You may not have changed anything but it appears the author of money-rails has yanked 0.8.0 and replaced it with 0.8.1. See http://rubygems.org/gems/money-rails for details.
You would have to do a bundle update and commit Gemfile.lock and redeploy and all should be good.
When I try to push my project to Heroku I get this error:
-----> Deleting 3 files matching .slugignore patterns.
-----> Ruby/Rails app detected
-----> Using Ruby version: ruby-1.9.3
-----> Installing dependencies using Bundler version 1.3.2
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin --deployment
Fetching gem metadata from https://rubygems.org/.......
Fetching gem metadata from https://rubygems.org/..
Could not find bootstrap-sass-2.3.1.1 in any of the sources
!
! Failed to install gems via Bundler.
!
! Heroku push rejected, failed to compile Ruby/rails app
To git#heroku.com:kerbal-space-station.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git#heroku.com:kerbal-space-station.git'
However my Gemfile certainly does have that and bundle install locally works fine.
bootstrap-sass 2.3.1.1 was yanked: https://rubygems.org/gems/bootstrap-sass/versions
You should run:
bundle update bootstrap-sass
then commit the new Gemfile.lock and push to heroku
The last version of bootstrap-sass is 2.3.1.0, you're looking for 2.3.1.1 and it doesn't exists.
Check your gemfile and add:
gem 'bootstrap-sass', '2.3.1.0'
you don't need to put version number you can only put
gem 'bootstrap-sass'
then do
bundle update