drhenner / ror_ecommerce

Ruby on Rails Ecommerce platform, perfect for your small business solution.
www.ror-e.com
MIT License
1.21k stars 409 forks source link

Ruby and Rails version to deploy on Heroku #103

Closed mcbuddy closed 11 years ago

mcbuddy commented 11 years ago

I use RVM and set the ruby 2.0.0 and rails 4. I push to heroku using mysql DB and run this command bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin --deployment got the error about the atomic gem. Please check this error logs

Fetching gem metadata from http://rubygems.org/....... Fetching gem metadata from http://rubygems.org/.. Using rake (10.0.4) Using Ascii85 (1.0.2) Using i18n (0.6.4) Using minitest (4.7.5) Using multi_json (1.7.7) Installing atomic (1.1.10) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

/Users/myname/.rvm/rubies/ruby-2.0.0-head/bin/ruby extconf.rb

/Users/myname/.rvm/rubies/ruby-2.0.0-head/bin/ruby: invalid option -D (-h will show valid options) (RuntimeError)

Gem files will remain installed in /Users/myname/Documents/myproject/vendor/bundle/ruby/2.0.0/gems/atomic-1.1.10 for inspection. Results logged to /Users/myname/Documents/myproject/vendor/bundle/ruby/2.0.0/gems/atomic-1.1.10/ext/gem_make.out

An error occurred while installing atomic (1.1.10), and Bundler cannot continue. Make sure that gem install atomic -v '1.1.10' succeeds before bundling.

is there any solution? Any feedback will much appreciated.

drhenner commented 11 years ago

I'll try my best to look into this. I'm pretty stacked so if I won't be able to try it out in heroku, but i will do my best with a search & asking a few questions

drhenner commented 11 years ago

Did you add a procfile? http://platypus.belighted.com/blog/2013/01/21/ruby-2-rails-4-heroku/

mcbuddy commented 11 years ago

Thank you for the responses. I did not use the procfile and will try it today then I will let you know how it goes. I been googling all day looking someone with same problem but seems like this is new problem. So the problem is the bundler command from heroku did not run correctly and it successfully install locally/manually and regular bundle install.

drhenner commented 11 years ago

If the procfile works can you give me a heads up? I'd like to post the solution to the wiki

mcbuddy commented 11 years ago

It does not work. Me and my co-worker trying to clean up the Gemfile and since the heroku need the https connection instead using ssh. Let see how it goes.

mcbuddy commented 11 years ago

Finally we did resolve after 5 hours battle to push this repo to heroku and It was the Gemfile has a lot of old branch which need to be updated. Yes you need the Procfile in order to run it on heroku and run necessary rake command. Thanks!

drhenner commented 11 years ago

Can you send me the Gemfile you are using?

mcbuddy commented 11 years ago

I just copy and paste from my Gemfile

source 'http://rubygems.org' ruby '2.0.0' gem 'rails', '4.0.0'

gem 'actionpack-page_caching' gem 'activemerchant', '~> 1.29.3'#, :lib => 'active_merchant' gem 'american_date' gem 'authlogic', :git => 'https://github.com/christophemaximin/authlogic.git', :branch => 'fix_deprecated_with_scope' #, "3.2.0" gem 'awesome_nested_set', '~> 3.0.0.rc.1' gem 'aws-sdk' gem 'bluecloth', '~> 2.1.0' gem 'cancan', '~> 1.6.8' gem 'chronic' gem 'compass-rails', :git => 'https://github.com/Compass/compass-rails.git', :branch => 'rails4-hack' gem 'dynamic_form' gem 'friendly_id', :git => "https://github.com/FriendlyId/friendly_id.git", :branch => 'rails4' gem 'haml', ">= 3.0.13"#, ">= 3.0.4"#, "2.2.21"#, gem 'jbuilder' gem 'jquery-rails' gem 'jquery-ui-rails' gem 'json', '~> 1.8.0' gem 'mysql2' gem 'nokogiri', '~> 1.5.0' gem 'paperclip', '~> 3.0' gem 'prawn', '~> 0.12.0' gem 'rails3-generators', :git => "https://github.com/neocoin/rails3-generators.git" gem 'rails_config' gem 'rmagick', :require => 'RMagick' gem 'rake', '~> 10.0.3' gem 'sass-rails', '~> 4.0.0' gem 'state_machine', '~> 1.2.0' gem 'uglifier', '>= 1.3.0' gem 'will_paginate', '~> 3.0.4'

group :development do gem 'autotest-rails-pure' gem 'better_errors', '~> 0.9.0' gem 'binding_of_caller', '~> 0.7.2' gem 'rails-erd' gem 'byebug', :platforms => [:mingw_20, :mri_20, :ruby_20] gem 'pry-byebug', :platforms => [:mingw_20, :mri_20, :ruby_20] gem 'yard' gem 'RedCloth' end

group :test, :development do gem 'capybara', "~> 1.1" gem 'launchy' gem 'database_cleaner', :git => 'https://github.com/bmabey/database_cleaner.git' end

group :test do gem 'factory_girl', "~> 3.3.0" gem 'factory_girl_rails', "~> 3.3.0" gem 'mocha', '~> 0.13.3', :require => false gem 'rspec-rails-mocha' gem 'rspec-rails', '~> 2.12.2' gem 'email_spec' gem 'faker' gem 'autotest', '~> 4.4.6' gem 'autotest-rails-pure'

if RUBY_PLATFORM =~ /darwin/ end gem 'autotest-growl' gem 'ZenTest', '4.9.1'#, '4.6.2'

end `