jeffutter / dokku-mongodb-plugin

Plugin to setup Mongodb accounts for containers deployed to Dokku
GNU General Public License v2.0
154 stars 52 forks source link

Database name hardcoded to $appname-production #29

Open edude03 opened 10 years ago

edude03 commented 10 years ago

I'm using dokku to deploy dev/staging/production environments for my app and I'd love a way to have the databases named based on the environment.

I'm not sure what the best way would be to achieve this, maybe create can be changed to take a name parameter in the mean time?

jeffutter commented 10 years ago

I have made some changes to this branch: https://github.com/jeffutter/dokku-mongodb-plugin/tree/feature/database-envs

You should be able to get this working as you require like this:

dokku mongodb:create MyApp MyDatabase MyEnv

Where MyEnv is production or test or whatever you like.

I don't have a ton of time to test this thoroughly. Can you give it a trial run please?