We have two environments - two MarkLogic clusters - that are largely identical except we want to permit the POSTing of data to one environment (a pre-production environment) but not the other (production, which is public facing). We use ml-gradle to deploy modules. We'd like to ignore or omit the modules/paths of modules that accept the POSTed data when deploying to production.
I cannot find any documentation that describes whether this is possible or how it can be configured if it is possible. Is it possible? If so, how? If it isn't possible, what are our options? Something like a post-deploy command that then deletes the modules from the production modules database?
See https://github.com/marklogic-community/ml-gradle/wiki/Property-reference#module-and-schema-properties - mlModulesRegex is likely what you want.