Sakthivel M

Joined

10 Experience
0 Lessons Completed
0 Questions Solved

Activity

Posted in Deploy RoR app from Azure DevOps to Linux Server

I used your above script to install postgres in AZ Devops Pipeline..

it is failing in

- script: |
    sudo -i -u postgres psql -c "CREATE USER user WITH PASSWORD 'pppppp';"
    sudo -i -u postgres psql -c "ALTER USER user WITH SUPERUSER;"
    sudo -i -u postgres psql -c "CREATE DATABASE db WITH OWNER = user;"
    sudo -i -u postgres psql -c "CREATE DATABASE db_test WITH OWNER = user;"
  displayName: 'create pg user & db'

With Below error
psql: error: could not connect to server: No such file or directory

Can i also know what host config you gave in your database.yml file.

Thanks in advance.

logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2021 GoRails, LLC. All rights reserved.