-
-
Notifications
You must be signed in to change notification settings - Fork 34
Update fastify to v3 #60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this needed?
There was a problem hiding this comment.
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
}) | ||
|
||
next() | ||
}) | ||
|
||
fastify.register(function scopeTwo (instance, opts, next) { | ||
instance.register(fastifyPostgres, { | ||
connectionString: 'postgres://postgres@localhost/postgres', | ||
connectionString: 'postgres://postgres:postgres@localhost/postgres', |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Co-authored-by: Manuel Spigolon <[email protected]>
Checklist
npm run test
andnpm run benchmark