Get Error: You must install at least one postgresql-client- package when deploy to heroku

后端 未结 2 1053
情书的邮戳
情书的邮戳 2021-01-31 13:14
sdilshod@sdilshod-Lenovo-B590:~/webapp/saturn$ heroku run rake db:migrate
Running `rake db:migrate` attached to terminal... up, run.6194
DEPRECATION WARNING: You have Ra         


        
2条回答
  •  误落风尘
    2021-01-31 13:28

    Update March 30th, 2020

    Agree with the chosen answer, but I found to install postgresql-client-12 on a Ubuntu 18 slightly more involved.

    sudo apt update
    sudo apt -y install vim bash-completion wget
    sudo apt -y upgrade
    wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
    echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list
    sudo apt update
    sudo apt -y install postgresql-client-12
    

    See this reference for details.

提交回复
热议问题