Heroku error when launch rails3.1 app missing postgres gem

前端 未结 3 521
野的像风
野的像风 2020-12-16 15:02

I am trying to deploy to heroku.

Rails 3.1.0.rc4,

I get the following error from Heroku logs:

Starting process with command: `thin -p 48902          


        
3条回答
  •  温柔的废话
    2020-12-16 15:37

    Do you have PostgreSQL installed on your computer? If you don't then install it first, then install the pg gem.

    # gemfile
    group :production do
      gem 'therubyracer-heroku', '0.8.1.pre3' # you will need this too
      gem 'pg'
    end
    

提交回复
热议问题