Does Heroku support `rails dbconsole`?

后端 未结 4 458
傲寒
傲寒 2021-02-02 10:26

I\'m trying to fire up rails dbconsole on Heroku but get the following error:

heroku run rails dbconsole
# => Couldn\'t find database client: psq         


        
4条回答
  •  长发绾君心
    2021-02-02 10:51

    https://devcenter.heroku.com/articles/heroku-postgresql - "You must have PostgreSQL installed on your system to use heroku pg:psql". So maybe you're missing PostgreSQL on your machine. If that's not the case, then try this other command to get to the Postgres console instead:

    heroku pg:psql 
    

    "psql is the native PostgreSQL interactive terminal and is used to execute queries and issue commands to the connected database."

提交回复
热议问题