marklogicroxy

Can Roxy be used to deploy generic MarkLogic applications?


I have developed a MarkLogic application which is neither an MVC nor a REST application (more precisely, it is a REST API which doesn't use the standard ML REST API).

I'd like to use Roxy to package and deploy this application but Roxy includes either ML's REST API or MVC framework when you create a new project.

Is it possible to strip down what is deployed by Roxy or do I have to find other solutions such as MarkLogic packaging which is much less features complete than Roxy?


Solution

  • To use the Deployer for a non-MarkLogic REST API application, I would start with an mvc application (ml new my-app --app-type=mvc), remove the provided source code (rm -rf src), then reset the URL rewriter and error handler

    Then you can copy your code into src.

    -- Update --

    As grtjn has noted, this ticket was implemented in Roxy. Correct answer is now to use --app-type=bare.