carp icon indicating copy to clipboard operation
carp copied to clipboard

dev webserver fails to start

Open cortsf opened this issue 2 years ago • 1 comments
trafficstars

Steps:

  1. setup database
  2. cd webserver/server
  3. nvm use
  4. yarn install
  5. yarn dev:start

Fails with:

yarn run v1.22.19
warning ../../../package.json: No license field
$ npx pgtyped --uri -c config.json && yarn build && concurrently "nodemon -x tsoa spec-and-routes" "npx pgtyped -w -c config.json" "nodemon"
Connection failed: no pg_hba.conf entry for host "127.0.0.1", user "postgres", database "postgres", no encryption
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

cortsf avatar Mar 12 '23 22:03 cortsf

Connection failed: no pg_hba.conf entry for host "127.0.0.1", user "postgres", database "postgres", no encryption

Seems like a setup issue with your database connection (unrelated to Carp). Notably, presumably you didn't mean to use the user postgres and database postgres?

SebastienGllmt avatar Mar 13 '23 06:03 SebastienGllmt