migrate-mongo icon indicating copy to clipboard operation
migrate-mongo copied to clipboard

Support custom config file

Open jazelly opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe. It seems I cannot specify a config file

Describe the solution you'd like Ideally, I can run migration with --env or --config

Describe alternatives you've considered

Additional context

jazelly avatar May 01 '23 10:05 jazelly

Maybe a little bit late, but checking on this framework to use it on my personal protect

I haven't tried it yet, based on this example, and due to it being a javascript file running Would it be possible to use a usual environment variable instead of a hard-coded string for the connection and/or database name?

If that is the case, you could use a different variable value on each environment and it should do the trick

Wolfium avatar Oct 29 '24 14:10 Wolfium

This feature already exists. Use migrate-mongo [command] -f path/to/config.js to specify a custom config file. See README for details.

seppevs avatar Dec 03 '25 07:12 seppevs