3

试图做一个需要我做的数据库操作rails db

我在做heroku run rails db,但我得到

Running导轨数据库attached to terminal... up, run.7334 Couldn't find database client: psql. Check your $PATH and try again.

我已经做好了:

gem update heroku

但这没有帮助。仍然得到同样的错误。

还:

$ heroku run bundle exec rails db --account work --app dmplanning
Running `bundle exec rails db` attached to terminal... up, run.1572
Couldn't find database client: psql. Check your $PATH and try again.
4

1 回答 1

5

这些工作:

heroku pg:psql --app # From the app's root directory
heroku pg:psql --app your_app_name # specifying the app
heroku pg:psql --app your_app_name --account work 
                   # if you have multiple accounts, specify which one.
于 2013-03-06T21:05:24.100 回答