Rails 4 - how to use sqlite3 in development and PostgreSQL in production w/Heroku

前端 未结 2 384
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-02 02:01

I am trying to deploy to Heroku but can\'t because the default sqlite3 server is still in place.

Detected sqlite3 gem which is not supported on Heroku.

2条回答
  •  迷失自我
    2021-02-02 02:34

    Try using this for your production DB

    production:
      adapter: postgresql
      host: localhost
      encoding: unicode
      database: my_production_database
      pool: 5
      username:
      password:
    

    You can leave username and password blank

提交回复
热议问题