flexxnn / sequelize-auto-migrations

Migration generator && runner for sequelize
MIT License
258 stars 166 forks source link

How to migrate to production #49

Closed JackyW83 closed 5 years ago

JackyW83 commented 5 years ago

Hello there,

I don't see any parameters can choose which environment to migrate, and in example only development present in config file. Does anyone know how to migrate to production?

thanks

Scimonster commented 5 years ago

Set the different environments in the config file and it should apply whichever one matched process.env.NODE_ENV