subzerocloud / postgrest-starter-kit

Starter Kit and tooling for authoring REST API backends with PostgREST
MIT License
744 stars 71 forks source link

psql: FATAL: role "superuser" does not exist #14

Closed freemember007 closed 6 years ago

freemember007 commented 7 years ago

when I modify my code on data/src/api/data/*.sql and save, the zubZero devtools reports this error. what about it ?

─Logs───────────────────────────────────────────────────────────┐ │./db/src/data/todo.sql changed │ │Starting code reload ------------------------ │ │psql: FATAL: role "superuser" does not exist │ │ │ │Ready --------------------------------------- │ │psql: FATAL: role "superuser" does not exist

ruslantalpa commented 7 years ago

Before bringing the stack up, make sure you are not running postgresql on your host (port 5432)

On 17 Sep 2017, at 04:23, freemember007 notifications@github.com wrote:

when I modify my code on data/src/api/data/*.sql and save, the zubZero devtools reports this error. what about it ?

─Logs───────────────────────────────────────────────────────────┐ │./db/src/data/todo.sql changed │ │Starting code reload ------------------------ │ │psql: FATAL: role "superuser" does not exist │ │ │ │Ready --------------------------------------- │ │psql: FATAL: role "superuser" does not exist

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

freemember007 commented 7 years ago

yes , I have another postgres running in 5432, so i modify docker postgresql's port to 5431:5432.

ruslantalpa commented 7 years ago

Devtools for now do not support another port, should be an easy fix but for now, that's the reason for the error

On 17 Sep 2017, at 18:08, freemember007 notifications@github.com wrote:

yes , I have another postgres running in 5432, so i modify docker postgresql's port to 5431:5432.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

ruslantalpa commented 6 years ago

this issue is tracked here https://github.com/subzerocloud/subzero-cli/issues/12