Skip to content
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

Knex minimal example with docker #5394

Open
brunolnetto opened this issue Nov 26, 2022 · 0 comments
Open

Knex minimal example with docker #5394

brunolnetto opened this issue Nov 26, 2022 · 0 comments

Comments

@brunolnetto
Copy link

Environment

Knex version:
Database + version: postgres:14.5
OS: Linux

Questions about how to use knex

I fail miserably to reproduce a minimal example with docker and Postgres. If you see repository content available here, you will see my efforts are legit. I ask politely and tender, however very vigorously, for either a Pull Request or instructions to make this minimal example feasible and working.

I can currently run the command docker-compose up -d and connect to the database server instance. However, the command run npm run migrations exits with log below.

knex: Required configuration option 'client' is missing.
Error: knex: Required configuration option 'client' is missing.
    at new Client (/home/brunolnetto/github/web-needle/sappio/node_modules/knex/lib/client.js:58:13)
    at knex (/home/brunolnetto/github/web-needle/sappio/node_modules/knex/lib/knex-builder/Knex.js:16:28)
    at initKnex (/home/brunolnetto/github/web-needle/sappio/node_modules/knex/bin/cli.js:84:10)
    at async Command.<anonymous> (/home/brunolnetto/github/web-needle/sappio/node_modules/knex/bin/cli.js:247:26)
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

No branches or pull requests

1 participant