seppevs / migrate-mongo

A database migration tool for MongoDB in Node
MIT License
931 stars 166 forks source link

add CLI parameter to set the migrations directory #226

Open iwan-uschka opened 4 years ago

iwan-uschka commented 4 years ago

It would help a lot to be able to run a migration from a random directory without cd into the project directory containing the migrations directory. I tried running migrate-mongo up -f ~/some-dir/migrations/migrate-mongo-config.js from / but got ERROR: migrations directory does not exist: /migrations because the project is located in ~/some-dir.