Rails 3.1 앱의 경우 SQLite를 사용하여 로컬로 개발하고 Heroku (PostgreSQL이 필요함)에 배포하려고합니다.PostgreSQL을 로컬에 설치하지 않고 Heroku에 배포하는 방법은 무엇입니까?
나는 성공적에게 Heroku에 밀어 수
group :development, :test do gem 'sqlite3' end
내 gemfile을 설정 한하지만 설치 내 Gemfile 및 실행 번들로 페이지 보석을 추가하면 앱에서
"Please install the postgresql adapter: `gem install activerecord-postgresql-adapter` (pg is not part of the bundle. Add it to Gemfile.)"
실패 , 나는 얻는다 :
"ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError) /opt/local/bin/ruby extconf.rb checking for pg_config . . . not found"
내가 PostgreSQL을 로컬에 설치하지 않았기 때문에.
로컬로 PostgreSQL을 설치하고 싶지 않습니다.
로컬로 PostgreSQL을 설치하지 않고 Heroku에 배포 할 수 있습니까?
좋은 조언을 발생하지만,이 경우에 나는 아주 간단한 일을하고 있는데 그것은 사용되지 않는 패키지 내 개발 시스템의 혼란을하지 공로 않습니다. –