如何将我的Postgres数据库上传到Django Heroku应用程序?

时间:2020-04-27 16:30:16

标签: django postgresql heroku heroku-postgres heroku-ci

我想在现有的heroku Django应用程序中上传我的本地postgres数据库。我运行这个:

$ PGUSER=postgres PGPASSWORD=mypass heroku pg:push postgres://localhost/newschool  DATABASE_URL

但这显示了这一点:

The local psql command could not be located. For help installing psql, see
 !    https://devcenter.heroku.com/articles/heroku-postgresql#local-setup

如何获取psql?我的电脑上已经安装了pgadmin和postgres。我该怎么办?在上述文档中,他们只是要求为Windows安装postgres。我已经做到了!

ps.newschool是数据库名称

0 个答案:

没有答案