2012-04-03 3 views
0

heroku가 jruby를 지원합니까? 나는 Heroku가에 JRuby를를 사용하여 레일 3.2.3 응용 프로그램을 구현하기 위해 노력하고 있지만 내가이 문제를 해결 어떻게 오류heroku에서 Rails 3.2.3 용 jruby를 지원합니까?

2012-04-03T20:21:02+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require': Please install the postgresql adapter: `gem install activerecord-postgresql-adapter` (no such file to load -- java) (LoadError) 

에 따라 얻을? 여기 내 Gemfile

source 'https://rubygems.org' 

gem 'rails', '3.2.3' 

# Bundle edge Rails instead: 
# gem 'rails', :git => 'git://github.com/rails/rails.git' 

gem 'activerecord-jdbcmysql-adapter' 
gem 'activerecord-jdbcpostgresql-adapter' 
gem 'devise' 
gem 'jruby-openssl' 
gem 'json' 

# Gems used only for assets and not required 
# in production environments by default. 
group :assets do 
    gem 'sass-rails', '~> 3.2.3' 
    gem 'coffee-rails', '~> 3.2.1' 

# See https://github.com/sstephenson/execjs#readme for more supported runtimes 
gem 'therubyrhino' 

gem 'uglifier', '>= 1.0.3' 
end 

gem 'jquery-rails' 

답변

0

내가 https://github.com/jkutner/jruby-trinidad-heroku

그것은 trindad/JRuby를 실행 랙 응용 프로그램을 가져 오는 방법을 보여줍니다 도움이 될이 링크를뿐만 아니라이 조금를 찾고 발견했습니다 자식 복제 자식 : //github.com/jkutner/jruby-trinidad-heroku.git BUNDLER_GEMFILE = Jemfile 번들 보석에게 Heroku에게 Heroku가이 --stack 삼나무 --buildpack http://github.com/heroku/heroku-buildpack-java 자식 푸시 Heroku가 마스터를 만들 를 설치

나는 선반이 아니라 레일을 만들려고 노력하고 있다는 것을 알고 있지만 이것이 좋은 출발점이 될 것이라고 생각합니다. 이 작업을 수행 할 수 있다면 레일 (db가 없음)을 가져 와서 천천히 빌드하십시오.

누군가가 jRuby에서 Roku의 예를보다 완벽하게 이해하지 못한다면.

관련 문제