Heroku: Push rejected, failed to compile Ruby app

前端 未结 3 1056
梦谈多话
梦谈多话 2021-01-26 18:07

I have been stuck for a week trying to figure this out. I have currently been following online lectures, however I followed everything exactly, and the instructor isn\'t really

3条回答
  •  有刺的猬
    2021-01-26 18:25

    You can't use SQLite on Heroku, you'll have to use PostgreSQL.

    You can set it up to use PostgreSQL on Heroku but SQLite in development, it's a good practice to use the same database in both your development and production environments.

    Notice that you list the gem 'sqlite3' multiple times, including one outside the development group. This causes Heroku to try to install it.

    My suggestion is to remove the sqlite gem completely and switch all to PostgreSQL.

提交回复
热议问题