rjrudin / slush-marklogic-spring-boot

slush generator for an Angular/Spring Boot/MarkLogic application
Other
10 stars 7 forks source link

Provide better support for deploying as a war #38

Open rjrudin opened 8 years ago

rjrudin commented 8 years ago

https://docs.gradle.org/current/userguide/war_plugin.html

May need a property for configuring the base/@href element in each HTML template.

May need to default to path-relative URLs for JS/CSS and AJAX requests so that the WAR can be deployed in a non-root context.

rjrudin commented 8 years ago

transform: function (filepath) { if (filepath.startsWith('/') && filepath.endsWith('.css')) { return ''; } if (filepath.startsWith('/') && filepath.endsWith('.js')) { return ''; } // Use the default transform as fallback return inject.transform.apply(inject.transform, arguments); }

ralmodiel commented 7 years ago

Check out this branch and the commit - instructions are in the readme file: gradle-cargo-plugin branch

So far tests show war generated may now be deployed to a Tomcat while keeping the original embedded Tomcat for bootRun or 'java -jar one.jar' options intact. Added the gradle cargo plugin also to simplify deployment to other application servers like WebLogic, WebSphere, etc.

Test it out for spin, I think I still need to test it further before making a pull request.