afloyd / mongo-migrate

MIT License
159 stars 81 forks source link

Allow user to specify a config file with a different structure #60

Closed alexbrazier closed 5 years ago

alexbrazier commented 8 years ago

Allow the user to specify where in the config file the db options are.

e.g.

{
    "database": {
        "production": {
            "host": "localhost",
            "db: "test"
        }
    }
}

To run: mongo-migrate -runmm -cfg config.json -dbn "database.production" <command>