Heroku支持`rails dbconsole`吗? [英] Does Heroku support `rails dbconsole`?

查看:92
本文介绍了Heroku支持`rails dbconsole`吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Heroku上启动 rails dbconsole ,但出现以下错误:

  heroku run rails dbconsole 
#=>找不到数据库客户端:psql。检查您的$ PATH并重试

可以在Heroku上使用dbconsole吗?如果不是有另一个可以使用的客户端?

https://devcenter.heroku.com/articles/heroku-postgresql - 您的系统上必须安装PostgreSQL才能使用heroku pg:psql。所以也许你在你的机器上缺少PostgreSQL。如果情况并非如此,那么请尝试使用其他命令进入Postgres控制台:

  heroku pg:psql 

psql是本地PostgreSQL交互式终端,用于执行查询并向连接的数据库发出命令。


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

heroku run rails dbconsole
# => Couldn't find database client: psql. Check your $PATH and try again

Is it possible to use the dbconsole on Heroku? If not is there another client that can be used?

解决方案

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."

这篇关于Heroku支持`rails dbconsole`吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆