尝试执行需要我执行rails db
我正在做heroku run rails db
但我正在
Running
rails db 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.
答案 0 :(得分: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.