Fix PGHOST env var in sg.config.yaml (#36485)

POSTGRES_HOST doesn't seem to work when running `sg run redis-postgres`:

    $ POSTGRES_HOST=localhost PGPASSWORD=sourcegraph PGUSER=sourcegraph psql
    psql: error: connection to server on socket "/tmp/.s.PGSQL.5432" failed: No such file or directory
            Is the server running locally and accepting connections on that socket?

    $ PGHOST=localhost PGPASSWORD=sourcegraph PGUSER=sourcegraph psql
    Null display is "[NULL]".
    Expanded display is used automatically.
    psql (14.1, server 12.7)
    Type "help" for help.

    sourcegraph@localhost:5432 sourcegraph#
This commit is contained in:
Thorsten Ball 2022-06-02 18:06:54 +02:00 committed by GitHub
parent d808d74416
commit b89947fb27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -504,7 +504,7 @@ commands:
# database:
#
# env:
# POSTGRES_HOST: localhost
# PGHOST: localhost
# PGPASSWORD: sourcegraph
# PGUSER: sourcegraph
#