2014-12-21 2 views
0

나는 PostgreSQL 데이터베이스를 Heroku에서 마이그레이션하려고합니다.heroku run rake db : migrate don't work

Could not find rake-0.9.6 in any of the sources 

내가 번들 간부를 실행 ... 동일한 오류,

 $rake --version 
rake, version 10.4.2 

내 Gemfile :

source 'https://rubygems.org' 


group :production do 
    gem 'pg', '0.15.1' 
    gem 'rails_12factor' 
end 
group :development, :test do 
    gem 'sqlite3' 
end 

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' 
gem 'rails', '4.1.8' 
gem 'rake', '0.9.6' 

# Use SCSS for stylesheets 
gem 'sass-rails', '~> 4.0.3' 
# Use Uglifier as compressor for JavaScript assets 
gem 'uglifier', '>= 1.3.0' 
# Use CoffeeScript for .js.coffee assets and views 
gem 'coffee-rails', '~> 4.0.0' 
# See https://github.com/sstephenson/execjs#readme for more supported runtimes 
# gem 'therubyracer', platforms: :ruby 

# Use jquery as the JavaScript library 
gem 'jquery-rails' 
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks 
gem 'turbolinks' 
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder 
gem 'jbuilder', '~> 2.0' 
# bundle exec rake doc:rails generates the API under doc/api. 
gem 'sdoc', '~> 0.4.0',   group: :doc 

# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring 
gem 'spring',  group: :development 

당신에게

답변

0
감사 내가
heroku run rake db:migrate
를 실행하면 나는 오류가 발생했습니다

당신이 그 버전을 특별히 필요로하지 않는다면 나는 겜프에서 긁어 모으기로했다. 번들러는 올바른 버전을 사용합니다.

0

실행이 작동

heroku run bundle exec rake db:migrate 

이 명령. 작동하지 않을 경우

, 아마 당신은 그 다음

bundle install 

bundle exec rake db:migrate 
실행 그래서

gem uninstall rake 

을 실행 레이크 을 제거해야

관련 문제