Deploying Laravel on Heroku “PDOException in Connector.php line 55” (sqlite)

后端 未结 2 1130
滥情空心
滥情空心 2021-01-03 14:05

I tried to deploy my first Laravel project on Heroku. It\'s a small project, so I\'m using SQLite as my database. After deploying the project using git push heroku mas

相关标签:
2条回答
  • 2021-01-03 14:46

    Sqlite is setup as a shared extension on Heroku, but has to be enabled through composer.json i believe.

    Try adding:

    {
        "require": {
            "sqlite3": "*"
        }
    }
    

    To your composer.json file.

    0 讨论(0)
  • 2021-01-03 15:02

    I've also encountered this on Heroku.

    I added:

    {
       "require": {
            "ext-pdo_sqlite": "*"
       }
    }
    
    0 讨论(0)
提交回复
热议问题