
Sakthivel M
Joined
10 Experience
0 Lessons Completed
0 Questions Solved
Activity
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.