2011-08-10 3 views
1

나는Heroku 레이크가 중단 되었습니까?

heroku rake db:migrate 

을 실행하려고하지만 앱이

-----> Heroku receiving push 
-----> Ruby/Rails app detected 
-----> Configure Rails to log to stdout 
     Installing rails_log_stdout... done 
-----> Gemfile detected, running Bundler version 1.0.7 
     All dependencies are satisfied 
-----> Compiled slug size is 14.3MB 
-----> Launching... done, v7 
     http://young-robot-995.heroku.com deployed to Heroku 

성공적으로 시작됩니다

(in /app) 
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/file_utils.rb:10: warning: already initialized constant RUBY 
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/file_utils.rb:84: warning: already initialized constant LN_SUPPORTED 
rake/rdoctask is deprecated. Use rdoc/task instead (in RDoc 2.4.2+) 
rake aborted! 
test-unit is not part of the bundle. Add it to Gemfile. 
/usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/shared_helpers.rb:102:in `block in cripple_rubygems' 
/app/lib/tasks/rspec.rake:1:in `<top (required)>' 
/app/.bundle/gems/ruby/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:145:in `load' 
/app/.bundle/gems/ruby/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:145:in `block in load_with_new_constant_marking' 
/app/.bundle/gems/ruby/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:521:in `new_constants_in' 
/app/.bundle/gems/ruby/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:145:in `load_with_new_constant_marking' 
/app/.bundle/gems/ruby/1.9.1/gems/rails-2.3.8/lib/tasks/rails.rb:14:in `block in <top (required)>' 
/app/.bundle/gems/ruby/1.9.1/gems/rails-2.3.8/lib/tasks/rails.rb:14:in `each' 
/app/.bundle/gems/ruby/1.9.1/gems/rails-2.3.8/lib/tasks/rails.rb:14:in `<top (required)>' 
/app/Rakefile:11:in `require' 

이 오류가 계속하지만 난이 오류

무엇입니까 내 로컬 개발 루비 1.8을 사용하는 것 같습니다하지만 그는 로쿠는 당신이 당신의 Gemfile를 수정해야 할 것 같은데 그

source 'http://rubygems.org' 

#gem 'sqlite3-ruby', '1.2.5', :require => 'sqlite3' 
gem 'rails', '2.3.8' 
gem 'will_paginate', '2.3.12' 
gem 'googlecharts' 
gem 'faker' 
gem 'httparty' 
gem 'bandsintown' 
gem 'itunes-search-api','0.1.0', :path => 'vendor/gems/itunes-search-api-0.1.0' 
gem 'i18n', '0.4.2' 
gem "giggly", "~> 0.1.2" 
gem "ruby-paypal",'0.0.5', :path => 'vendor/gems/ruby-paypal-0.0.5' 


group :development, :test do 
    gem 'sqlite3-ruby', '1.2.5', :require => 'sqlite3' 
end 
+0

을 Heroku가 그렇게 당신의 gemfile 또는 작동하지 않습니다 마이그레이션에'보석 pg'를 추가 위해 Postgress 보석이 필요합니다. 또한'test-unit' 보석이 필요해 보이는 것처럼 보이기도합니다. 그래서 같은 추적을 계속하는지보십시오. – austinbv

+0

나는 sqllite를 사용하고 있는데 .... 아직은 필요하지 않습니다. – Trace

+0

Heroku는 postgres를 사용합니다. – austinbv

답변

3

도움이 될 것입니다 경우 여기

를 해결하는 방법에 대한 아이디어를 내 gemfile입니다 .... 어쩌면 원인 먹으 렴의 1.9.1과 같다 아래의 하나를 사용하여 시도하고 당신을 위해 작동하는지 확인 : 내가 아는

source 'http://rubygems.org' 

gem 'rails', '2.3.8' 
gem 'will_paginate', '2.3.12' 
gem 'googlecharts' 
gem 'faker' 
gem 'httparty' 
gem 'bandsintown' 
gem 'itunes-search-api','0.1.0', :path => 'vendor/gems/itunes-search-api-0.1.0' 
gem 'i18n', '0.4.2' 
gem "giggly", "~> 0.1.2" 
gem "ruby-paypal",'0.0.5', :path => 'vendor/gems/ruby-paypal-0.0.5' 

group :production do 
    gem 'test-unit' 
    gem 'pg' 
end 


group :development, :test do 
    gem 'sqlite3-ruby', '1.2.5', :require => 'sqlite3' 
end 
+0

논리적이지만 번들 설치시이 오류가 발생합니다. googlecharts (1.6.7) 사용 vendor/gems/itunes-search-api-0.1.0에서 itunes-search-api (0.1.0)를 사용하십시오. pg 설치 (0.11.0) with native extensions /Library/Ruby/Site/1.8/rubygems/installer.rb:551:in'build_extensions ': 오류 : 젬 네이티브 확장을 빌드하지 못했습니다. (Gem :: Installer :: ExtensionBuildError) – Trace

+2

번들 설치를 실행하면 번들로 설치되어 실행됩니다. postgre SQL을 설치하지 않으려면 로컬 번들을 번갈 때마다 그렇게해야합니다. 나는 리눅스에 있다면 별칭이나 뭔가를 제안 할 것이다. –

+0

웁스! Thariq에게 감사하다는 말을 잊어 버렸습니다. –

관련 문제