dokku-mongodb-plugin icon indicating copy to clipboard operation
dokku-mongodb-plugin copied to clipboard

Database name hardcoded to $appname-production

Open edude03 opened this issue 11 years ago • 1 comments
trafficstars

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?

edude03 avatar May 13 '14 14:05 edude03

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?

jeffutter avatar May 16 '14 17:05 jeffutter