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

[3.0.0-0] .sequelizerc not read #536

Closed
kristijanhusak opened this issue Sep 9, 2017 · 8 comments · Fixed by #537
Closed

[3.0.0-0] .sequelizerc not read #536

kristijanhusak opened this issue Sep 9, 2017 · 8 comments · Fixed by #537
Labels

Comments

@kristijanhusak
Copy link
Contributor

I'm using sequelize-cli inside a docker. I had everything working properly until today when i rebuilt the docker machine. It installed v3.0.0-0, and the sequelize db:migrate command failed with this error:

Cannot find "/src/config/config.json". Have you run "sequelize init"?

I have this inside .sequelizerc

var path = require('path')

module.exports = {
  'config':          path.resolve('migration.json'),
  'migrations-path': path.resolve('migrations')
}

Just tried it with the v2.8.0, and it started working properly.

So i guess the .sequelizerc is not properly read by the cli, and it tries the default.

@ghost
Copy link

ghost commented Sep 9, 2017

Same problem here, running on macOS with fresh update to v3.0.0-1.

@AkashSouravNayak
Copy link

same problem with me also ,running on ubuntu 16.04 with version v3.0.0-0

@lumberjackchef
Copy link

Same on macOS, fresh install.

@sushantdhiman
Copy link
Contributor

Should be fixed now, Let me know if this bug still persists after update to v3.0.0-2

@ghost
Copy link

ghost commented Sep 10, 2017

Confirmed, working for me 👍

@snetts
Copy link

snetts commented Jul 19, 2019

Still happening on sequelize/cli 5.5.0

@andrecavallari
Copy link

Still happening on sequelize/cli 5.5.0

Also here!

@miqdadamirali
Copy link

I'm still getting this error on sequelize/cli 6.4.1

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

Successfully merging a pull request may close this issue.

7 participants