【发布时间】:2020-11-08 03:54:04
【问题描述】:
我在 SQLite 中有一个本地数据库,我正在尝试将数据库推送到 Heroku。不幸的是,我不断收到以下错误:
heroku pg:push db.sqlite DATABASE_URL --app snaplost
heroku-cli: Pushing db.sqlite ---> postgresql-rigid-38880
pg_dump: error: connection to database "db.sqlite" failed: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
pg_restore: error: could not read from input file: end of file
▸ pg_dump errored with 1
我该如何解决这个问题?
【问题讨论】:
-
您使用什么语言? .你能把db配置文件的代码sn-p放在这里吗?在 heroku 中,默认数据库是 postgresql 。尝试根据postgresql更改db参数。
标签: database postgresql sqlite heroku