Skip to content

Conversation

@frikille
Copy link
Contributor

Checklist

  • run npm run test and npm run benchmark
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message and code follows Code of conduct

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you drop .travis.yml?

@@ -0,0 +1 @@
localhost:*:*:postgres:postgres No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in the ci config we must set a POSTGRESS_PASSWORD value, and when we run the psql command it would prompt for a password, but if we provide a .pgpass file it will use that to get the password

fastify.register(function scopeTwo (instance, opts, next) {
instance.register(fastifyPostgres, {
connectionString: 'postgres://postgres@localhost/postgres',
connectionString: 'postgres://postgres:postgres@localhost/postgres',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we can use .env to load those up? I think locally it could be different. It would also be different if Docker is used.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is the same locally as well. I updated to docker commands

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mcollina mcollina merged commit 0a98afa into fastify:master May 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants