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

Custom seeds directory #804

nathasm opened this Issue May 1, 2015 · 1 comment


None yet
2 participants
Copy link

nathasm commented May 1, 2015

I may be off base here, so maybe someone can help clear this up:

Docs state that the knexfile.js can define a custom seeds directory:

  development: {
    client: 'mysql',
    connection: {
    migrations: {
      tableName: 'knex_migrations',
      directory: '../db/migrations'
    seeds: {
      directory: '../db/seeds'

And then try to seed my project, it looks like it's picking up the default directory.

knex --knexfile config/knexfile.js seed:run
Error: ENOENT, readdir 'MYPATH/config/seeds'

In lib/seed/index.js L17 it looks like it's trying to pull the value from knex.client.seedConfig.

If I change that reference to knex.client.config.seeds everything seems to work

Am I missing something?


This comment has been minimized.

Copy link

tgriesser commented May 1, 2015

Nope, sounds like a regression - I'll get it fixed/tested tomorrow am

@tgriesser tgriesser added the bug label May 1, 2015

@tgriesser tgriesser closed this in bdd0efa May 1, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.