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

Closed
nathasm opened this issue May 1, 2015 · 1 comment
Closed

Custom seeds directory #804

nathasm opened this issue May 1, 2015 · 1 comment
Labels

Comments

@nathasm
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?

@tgriesser
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants